Hey guys. Hello again. I'm having trouble loading bitmaps from hinstance. why the heck is that? it compiles but the resources cannot be found.
Thanks in advance.
Hello,
Could you post your resource script and source code?
here it is.
invoke ImageList_Create,32,32,ILC_COLOR32,4,8
mov hImageList,eax
mov ecx,4
mov ebx,200
cld
loop_1:
push ecx
push ebx
invoke LoadImage,hInstance,ebx,IMAGE_BITMAP,32,32,LR_DEFAULTCOLOR
invoke ImageList_Add,hImageList,eax,0
pop ebx
inc ebx
pop ecx
loop loop_1
sorry...i had to do it manually and forgot to remove cld.