flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
drs 05 Mar 2005, 15:59
Hi,
I'm not an expert in assembly or anything but I think your problem might be that you are not passing the correct argument into LoadBitmap. It should be the instance to the application not a window. Save EAX from GetModuleHandle and pass it into LoadBitmap. This way you are passing a handle to an instance and not a handle to a window. Let me know if that works. Thanks. EDIT: Actually I just reread your source code, it looks like [hwnd] might be eax. Check this in a debugger anyway. |
|||
![]() |
|
arnix 05 Mar 2005, 20:07
Yes, I already solved the problem, you are right about instance
![]() ... ... start: invoke GetModuleHandle, 0 mov [hInstance],eax ... ... invoke LoadBitmap, [hInstance], IDR_DOIT invoke SendDlgItemMessage, [hwnd], ID_DO_B, BM_SETIMAGE, IMAGE_BITMAP, eax ;================ Thank you ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.