flat assembler
Message board for the users of flat assembler.
Index
> Main > PROTO equivalent for FASM |
Author |
|
Tomasz Grysztar 05 Jan 2006, 16:09
You should use EXTRN, but without ":DWORD".
|
|||
05 Jan 2006, 16:09 |
|
alorent 05 Jan 2006, 16:16
Hello Tomasz,
Thanks for the hint. If I declare it with just EXTRN (without ":DWORD") I get the following error when called via: invoke MyFunc, Param1, Param2 -- Error: Proc32.ini [20] invoke [6]: call [proc] } operand size not specified -- So, I have to put the :DWORD for the procedure. Is this OK then? Thanks. |
|||
05 Jan 2006, 16:16 |
|
Tomasz Grysztar 05 Jan 2006, 16:38
You should use "stdcall" macro for such calls, not "invoke". "invoke" uses the pointer variable to call the procedure, while "stdcall" calls the procedure directly.
I stronglly recommend reading through the documentation, also in PDF format included in the fasm for Windows package. |
|||
05 Jan 2006, 16:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.