Advertisement

Using binary resources with VS

Started by February 12, 2001 02:48 PM
0 comments, last by SoftwareFailure 23 years, 11 months ago
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
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