Author Topic: Resource file problems.  (Read 182 times)

xandaz

  • Member
  • **
  • Posts: 152
  • I luv you babe
Resource file problems.
« 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.
nothing to report.

Vortex

  • Member
  • *****
  • Posts: 2372
Re: Resource file problems.
« Reply #1 on: August 13, 2020, 12:13:26 AM »
Hello,

Could you post your resource script and source code?

xandaz

  • Member
  • **
  • Posts: 152
  • I luv you babe
Re: Resource file problems.
« Reply #2 on: August 13, 2020, 02:04:50 AM »
    here it is.
Code: [Select]
    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   
nothing to report.

xandaz

  • Member
  • **
  • Posts: 152
  • I luv you babe
Re: Resource file problems.
« Reply #3 on: August 13, 2020, 02:05:55 AM »
    sorry...i had to do it manually and forgot to remove cld.
nothing to report.