#14 Cannot load bitmaps from a linked resource.

open
nobody
None
5
2009-08-18
2009-08-18
Anonymous
No

You can add bitmaps to a KOL-CE exe by adding to the .rc file, and the exe size increases by the size of the bitmap.
However, there is no way of actually using the bitmap in the resources.

This line causes an error:
bitmap^.LoadFromResourceName(hInstance,'TEST');

If you replace it with this line, it works, but loads from a file instead of the resource:
bitmap^.LoadFromFile('test.bmp');

Discussion