The MASM Forum

General => The Campus => Topic started by: xandaz on August 13, 2020, 12:10:33 AM

Title: Resource file problems.
Post by: xandaz on August 13, 2020, 12:10:33 AM
   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.
Title: Re: Resource file problems.
Post by: Vortex on August 13, 2020, 12:13:26 AM
Hello,

Could you post your resource script and source code?
Title: Re: Resource file problems.
Post by: xandaz on August 13, 2020, 02:04:50 AM
    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   
Title: Re: Resource file problems.
Post by: xandaz on August 13, 2020, 02:05:55 AM
    sorry...i had to do it manually and forgot to remove cld.