problem about loadimage-Collection of common programming errors
yves
c++ resources loadimage
I’m having a problem to add a bitmap image to a static control box, i got an unhandled exception when i run my program. Here’s my code.FROM RC FILE :ID_ICON1 BITMAP “icon1.bmp”CPP FILE :HANDLE bIcon1; HWND hIcon; hIcon = CreateWindowEx(0, “Static”, NULL, WS_CHILD | WS_VISIBLE|SS_BITMAP, 250, 100, 100, 100, hwnd, NULL, GetModuleHandle(NULL), NULL); bIcon1 = LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(ID_ICON1), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE| LR_DEFAULTSIZE);If i use fu
Originally posted 2013-11-27 12:29:57.