RE: [Dev-C++] Problem with resource files.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <bis...@bt...> - 2000-11-28 09:49:00
|
The first one doesn't work because the default directory is not the current directory in Dev-C++ so you'll have to use absolute paths. The second one doesn't work because you need to use forward slash (/) as directory seperator - backslash does not work. Try: ID_MAIN ICON DISCARDABLE "C:/Dev-C++/Projects/Generic/generic.ico" ID_RS ICON DISCARDABLE "C:/Dev-C++/Projects/Generic/rs.ico" - Biswa. -----Original Message----- From: Richard P. Evans [mailto:ev...@ma...] Sent: 27 November 2000 23:05 To: dev...@li... Subject: [Dev-C++] Problem with resource files. Okay, here's my problem again. I am using the latest version of Dev-C++, 4.01, and I went to Project Options and changed the resource to be loaded to C:\Dev-C++\Projects\Generic\Generic.rc. I did a Makefile and then tried to compile. Below is what is in Generic.rc to load the icons which are in the same directory. ID_MAIN ICON DISCARDABLE "generic.ico" ID_RS ICON DISCARDABLE "rs.ico" The compiling stops and I get the following message: C:\DEV-C_~1\BIN\windres: can't open icon file `generic.ico': No such file or directory To get around this I then put in the full path as shown below and tried again (with a new Makefile): ID_MAIN ICON DISCARDABLE "C:\Dev-C++\Projects\Generic\generic.ico" ID_RS ICON DISCARDABLE "C:\Dev-C++\Projects\Generic\rs.ico" Again it stopped compiling but this time I got the messages below. What am I doing wrong? This is the logical solution suggested by one correspondent but as you can see, logical as it is, it didn't work. C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:74: unrecognized escape sequence C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:74: unrecognized escape sequence C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:74: unrecognized escape sequence C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:74: unrecognized escape sequence C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:75: unrecognized escape sequence C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:75: unrecognized escape sequence C:\\DEV-C_~1\\PROJECTS\\GENERIC\\GENERIC.RC:75: unrecognized escape sequence C:\DEV-C_~1\BIN\windres: can't open icon file `C:\Dev-C++\Projects\Generic s.ico': No such file or directory |