I've got a bitmap image in my resource file which I want to load into memory by handle, so far I've not met with success, and to make matters annoying, the debugger will crash when encountering the LoadImage line. Tried going the FindResource and LoadResource route, but they also generate a:
on me. Note: GRAPHIC BITMAP LOAD iName, 20,20 TO hBitmap works just peachy. But is not what I need, I actually need the PALETTE of said image. Also, LoadBitmap fails with the Memory Access Violation as well. Running the program compiled, I get back 0 when using a message box to display the results of the various load attempts.
Code:
Exception: Memory Access Violation Program tried to read or write an invalid memory address End Debug at 12:47:50 PM on 2/14/2009
Comment