Sign in to follow this  
Jaykumar

Trouble adding resource to my Win32 app

Recommended Posts

well i got ResEdit to create a .rc script file.. it generated a .h file on its own.. i have added both these files to my project(in the solution explorer to the left under the resources folder) Now how do i call this .rc script file in my main cpp file.. when i type "#include <resources.rc>".. it says file not found and if i type ' #include "resources.rc" 'its generating some syntax errors.. Please help.. cheers :)

Share this post


Link to post
Share on other sites
Im using ResEdit.. so im jus supposed to export it into a .res file and then place the .h and .res in the same folder as my cpp? then im supposed to #include the resource.h?

Share this post


Link to post
Share on other sites
Assuming .res and .rc are the same actual format, yes. You may need to rename .res to .rc in order to get VS to automatically feed it to rc.exe.

Once you've done that you'll be able to access the shared information in the header file from code and feed it to the appropriate Win32 functions necessary to actually create the objects you want.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this