flat assembler
Message board for the users of flat assembler.
Index
> Windows > converting czelion's win32 tutorial 8 ex:1 to FASM |
Author |
|
mns 05 May 2019, 18:26
Hello,I tried to convert example 1 in tutorial 8 to FASM syntax.Although there was no errors during compiling(with FASM),when running the application menu wasn't showed.Please help me to figure out the problem.(file is attached with this post) [/b]
|
|||||||||||
05 May 2019, 18:26 |
|
mns 05 May 2019, 19:10
Thank you very much for the response but according to the czelion's win32 tutorial 8 (http://win32assembly.programminghorizon.com/tut8.html) there are two methods in creating a menu. You mentioned the 2nd one and I tried the 1st one. Since I am learning I like to experiment with both methods.and I want to figure out what is wrong with my code.thanks.
Last edited by mns on 06 May 2019, 10:37; edited 1 time in total |
|||
05 May 2019, 19:10 |
|
ProMiNick 05 May 2019, 20:38
It is possible too, but a bit complex.
In masm resources are identified by IDs and names. In fasm standard macroses realized only case with identification by ID. I realized somewhere in this forum additional ones. so, mns. thour resource section a bit incorrect translated to fasm syntax - no one resource identified with string 'mainMenu'. may be replace "mov [wc.lpszMenuName],MenuName" with "mov [wc.lpszMenuName],RT_MENU" edited: not with RT_MENU, with IDR_MAINMENU. |
|||
05 May 2019, 20:38 |
|
mns 06 May 2019, 10:35
Thank you very much ProMiNick. Your solution worked like a charm. I have attached corrected file with this post (I have added MenuName = IDR_MAINMENU in data section ).Thanks again.
|
|||||||||||
06 May 2019, 10:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.