resource files?!?

Started by
3 comments, last by Moe 23 years, 11 months ago
I understand what resource files are, but I am not sure how to use them. Suppose i want to include my own icon in my program. I know i have to make an icon, but i have to doing something with the resource file for my project, right? Can someone tell me step by step on how to use resource files (in VC++ 6)? - Moe -
Advertisement
aw, c''umon someone here has to help me!

- Moe -
When you go to add an icon to your project in VC, it should create a resource script for you... If not, then on the File / New dialog box there should be something to add a resource script to your project. Don''t try to add more than one, though, there''s one resource script per project as far as I know.
1 Create a new icon in the resource file
2 Give it a name e.g. IDI_ICON1
2 #include "resource.h" which the compiler create for you
3 LoadIcon(hInstance, IDI_ICON1);





tom.oram@vodafone.net

so in the resource file i create an icon file and a .h file to declare what is in the resource file, then include the .h file in the main code along with all the other include files?

when i create a resource script all i see is a folder. so i add the icon (or whatever files) into the resource file along with a .h file?

- Moe -

This topic is closed to new replies.

Advertisement