flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pete 23 Apr 2009, 08:45
Is the handle, returned by LoadAccelerators ok? Check eax for 0 (function failed) before saving the handle to memory.
|
|||
![]() |
|
frech 23 Apr 2009, 08:55
I tried, it seems to be ok. I enclose a zip file with the program until now.
|
|||||||||||
![]() |
|
pete 23 Apr 2009, 11:09
Why not use hwnd_frame handle instead of hwnd_client?
Code: invoke TranslateAccelerator,[hwnd_frame],[hAccel],msg Second, instead of comparing whole wparam with the ID, only compare the lowerword of wparam! Code: cmp word[wparam],IDM_NEW je .fm_new |
|||
![]() |
|
frech 23 Apr 2009, 11:33
Thx pete! Now it works perfectly! I've tried using [hwnd_frame], but without result. I supposed that just comparing wparam was enough, I didn't imagine that comparing the whole wparam was the origin of the problem... Now I added also the other accelerators I need for the moment. Thanks, really thanks!
|
|||
![]() |
|
pete 23 Apr 2009, 11:47
Make use of dbmon.exe and OutputDebugString Function; these help you when debugging your applications!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.