flat assembler
Message board for the users of flat assembler.
Index
> Windows > Need some help with uType in a Messagebox with fasm |
Author |
|
revolution 28 Dec 2012, 03:05
Works for me:
Code: ; example of simplified Windows programming using complex macro features include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here .code start: invoke MessageBox,HWND_DESKTOP,"Hi! I'm the example program!",invoke GetCommandLine,MB_OKCANCEL invoke ExitProcess,0 .end start |
|||
28 Dec 2012, 03:05 |
|
erg322(NOOB) 28 Dec 2012, 04:02
Many Thanks for the code fragment.
I just get the different styles and add them together and it works a treat. Before I was pushing values onto the stack and calling MessageBox, obviously it's not the best way to do it. |
|||
28 Dec 2012, 04:02 |
|
ManOfSteel 28 Dec 2012, 07:24
How do you think the "invoke" macro does it? Precisely by "pushing values onto the stack and calling MessageBox": http://flatassembler.net/docs.php?article=win32#1.3
So you must have done something wrong in your code. |
|||
28 Dec 2012, 07:24 |
|
erg322(NOOB) 28 Dec 2012, 08:59
Many thanks Man of Steel.
It was how I was declaring uType with an equ instead of using a db so it could take on a value or add multiple types together. I can now do both ways, should have RTFM instead of running around for a code fragment to work it out. I'l fiddle with this for a while and then try and figure out a dialog box. |
|||
28 Dec 2012, 08:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.