i need some help with compiling with a recource file, i have never used resources (or headers for that matter) until recently, im learning to program using the win32 API and im not quite sure how to make a resource file within the project and link it to my *.c ..... any help or comments would be very much appreciated, ty in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i need some help with compiling with a recource file, i have never used resources (or headers for that matter) until recently, im learning to program using the win32 API and im not quite sure how to make a resource file within the project and link it to my *.c ..... any help or comments would be very much appreciated, ty in advance
Select
File>New>Resource File
for the *.rc
You'll have to add a new source file, called *.h, with the values of constants you've used in the *.rc
Derek
Should have added, include that *.h in your program.
Derek
yeah i have a *.h file attatched but should i have #include <resource.rc> ? (and thank u for replying derek)
No need to include the *.rc, Dev handles that automatically.
Derek
Including the resource file makes no sense. Resources get compiled to .res by windres, not gcc/g++. Afterwards this resource is link to your prog.