Very strange problem going on here, any ideas at all would be very much appreciated...
I have a file with some binary data that I need to get a pointer to. I've imported the file into my eVC++ project with a resoure type of "SCRIPTS".
When I try to do a FindResource on it as follows:
I get back NULL every time. hInst is properly holding the app's handle and IDR_SCENE_1 is a defined resource symbol in resource.h (if I display it's value right before the FindResource call, it shows 126, which is what it is defined as in the header).
The worst part is, this works perfectly in the desktop emulator, but NOT on my real device (Casio E-125)! I do the exact same thing to load some other resources in other projects and it has always worked.
ANY ideas at all?? Thanks everyone!
I have a file with some binary data that I need to get a pointer to. I've imported the file into my eVC++ project with a resoure type of "SCRIPTS".
When I try to do a FindResource on it as follows:
- Code:
HRSRC hResInfo = NULL;
hResInfo = FindResource(hInst, MAKEINTRESOURCE(IDR_SCENE_1), L"SCRIPTS");
I get back NULL every time. hInst is properly holding the app's handle and IDR_SCENE_1 is a defined resource symbol in resource.h (if I display it's value right before the FindResource call, it shows 126, which is what it is defined as in the header).
The worst part is, this works perfectly in the desktop emulator, but NOT on my real device (Casio E-125)! I do the exact same thing to load some other resources in other projects and it has always worked.
ANY ideas at all?? Thanks everyone!