-
.rc files problem
Hi there, i'm making a small windows application, and I am trying to use resource script files, but i don't really know how to use them. I made my own, but while using Visual C++. i couldn't compile. Now i'm trying Dev-C++. How do I use rc files on this one? Thanks a lot. :D
-
I think this tutorial will show you.
-
My app makes a window. I made my resource script file to create de menus and the icons, like it is said on that tutorial. But, he doesn't say how to compile. I only done cl /DWIN32 window.c user32.lib, and it compiled successfuly. But the window has no menu nor icons. Then, I tryed cl /DWIN32 window.c user32.lib /link resoure.h and an error ocurred:
resource.h : fatal error LNK1107: invalid or corrupt file: cannot read at 0x135
Can you help me? Thanks a lot. :(
PS: I included de file resource.h on my window.c
PS2: i've been reading that faq a while
-
Use resource compiler as follows
rc myrcfile.rc
If successful, it will create a myrcfile.res
Then:
cl /DWIN32 mycfile.c myrcfile.res user32.lib