// From script1.rc
.
.
.
/////////////////////////////////////////////////////////////////////////////
//
// 50
//
IDR_501 50 DISCARDABLE "Overlay.tga"
IDR_502 50 DISCARDABLE "titledefault.tga"
IDR_503 50 DISCARDABLE "titlehover.tga"
#endif // English (New Zealand) resources
/////////////////////////////////////////////////////////////////////////////
.
.
.
// Exact code in my .cpp
HRSRC hRsrc = FindResource(0, "Overlay.tga", "50");
//HRSRC hRsrc = FindResource(0, "Overlay.tga", "#50"); // also tryed this
if(hRsrc) MessageBox(0, "Working", 0,0);
Loading custom resources...
I cant get this working... heres the code
MasterDepot
ughh, forgot about the smiley parser. make that:
HRSRC hRsrc = FindResource(0, MAKEINTRESOURCE(IDR_501), "50" ;
ahh crap. someone needs to fix that
parser.
HRSRC hRsrc = FindResource(0, MAKEINTRESOURCE(IDR_501), "50");
I remember there was something I had to do to load resources using a string filename rather than an integer. Can''t remember what it is off the top of my head though. I will have a look to see if I can find the code when I get home.
Got it!
I had tryed the two things seperately, but not together...
MasterDepot
HRSRC hRsrc = FindResource(0, MAKEINTRESOURCE(IDR_501), "#50");
I had tryed the two things seperately, but not together...
MasterDepot
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement