directx problems

Started by
3 comments, last by oni_viper 21 years, 8 months ago
for some reason my pictures won''t load. i use the statement: hbm = (HBITMAP) LoadImage(GetModuleHandle(NULL), szBitmap, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION); to load the bmp file but it always comes back NULL.
oops...
Advertisement
Have you tried using the full path and file name for the szBitmap parameter?
yeah. but i have an idea, that might fix the problem. i think that statement might be incomplete.
oops...
You should use flag LR_LOADFROMFILE instead of LR_CREATEDIBSECTION

I hope this help you!

gnolo
gnolo
thanks. that was the problem.

[edited by - oni_viper on August 7, 2002 2:40:12 AM]
oops...

This topic is closed to new replies.

Advertisement