Using binary resources with VS
Hi,
I have a problem with including a binary resource (RT_RCDATA)
in my application.
As described in the doc, I first add a new script template (.rc) to my workspace, and then a user-defined resource from the "Insert->Resource" menu. When saving the workspace now, VS generated a resource.h include file which contains the definition for my binary resource (IDR_MYFILE). If I include this file now in my project and the program executes the following line
res=FindResource(NULL,MAKEINTRESOURCE(IDR_COMMANDS1),RT_RCDATA);
it always returns NULL, i.e. failed to find the resource!?
Does anybody know what could be wrong there? The problem must be in the way I include the binary resource I think...Please help me!
Thank you.
Andreas
February 13, 2001 07:40 AM
Sorry, I made a mistake MAKEINTRESOURCE(IDR_MYFILE) of course....but it still does not work! Please help out anyone!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement