News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Resource file problems.

Started by xandaz, August 13, 2020, 12:10:33 AM

Previous topic - Next topic

xandaz

   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.

Vortex

Hello,

Could you post your resource script and source code?

xandaz

    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   

xandaz

    sorry...i had to do it manually and forgot to remove cld.