I am useing Dev-Cpp on Windows 98 SE. Useing some sample code to open a window in Win32 API, I try to add a resource file to draw my menu. My operating system is Window 98 SE, and this is a Win32 program:
Three files, first.c, first.h and first.rc are included in my project. first.h contains all my #defines. All function prototypes for user defined functions (my window process handlers) are defined in first.c, my main module. All compiles fine without the resource file, The program opens a window. I then added to my project a resource file.
In the resource file I had a menu, that was it. It worked when I created my window class I brought in my menu with
MAKEINTRESOURCE(IDR_MYMENU);
where IDR_MYMENU is the ID for my menu defined in first.rc and #defined in first.h
However, when I add the code for my dialog box, I get errors:
=======Compiler Log===========
Building Makefile: "C:\My Documents\development\Makefile.win"
Executing make clean
rm -f first.o first_private.res first.exe
gcc.exe -c first.c -o first.o -I"D:/DEVELOPMENT/DEV-CPP/include" -s -mwindows
windres.exe -i FIRST_~1.RC -I rc -o first_private.res -O coff
FIRST_~1.RC:4: first: No such file or directory
windres.exe: first.rc:18: parse error
make.exe: *** [first_private.res] Error 1
Execution terminated
========Compile Log Ends here======
I did some google searching:
http://www.cygwin.com/ml/cygwin/1999-08/msg00440.html
It apears the person posting in the URL above has a very simular problem. And this leads me to believe the problem is windres.exe
Does anyone know how I can solve this problem? Or has anyone else experienced this before?
The atachement contains all my project files.




Reply With Quote