MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite
Quote from: dedndave on May 21, 2012, 12:00:54 PMcan you send me a sample bitmap with that problem yahoo-email:xia_han@yahoo.cn
however, the program crashes if i try to open certain bmp files
not sure why that is, but it may be something to do with accessing addresses in the heap that aren't allocated
Quote from: dedndave on May 21, 2012, 12:00:54 PMwhat do you mean
i would just work on general "clean-up"
.elseif uMsg == WM_ERASEBKGND
.if hbmp
mov eax,1
jmp @f
.endif
xor eax,eax
xor eax,eax
jmp def
...
.else
def:
invoke DefWindowProc,hWnd,uMsg,wParam,lParam
ret
A equ B
B equ C
C equ D
D equ 2
A equ B
B equ A
INVOKE GetProcessHeap
mov hHeap,eax
INVOKE HeapAlloc,hHeap,<Flags>,<BytesRequired>
mov hBlock,eax
INVOKE HeapFree,hHeap,NULL,hBlock