flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Is this a bug or what's wrong with this code ? |
Author |
|
Tomasz Grysztar 23 Jun 2005, 07:20
The AddAPI macro you've used is a wrapper to "invoke" macro, which is used to call API functions (imported from DLLs) indirectly (through double word pointers in memory) - the error you get means that the label you try to invoke has a bad type - it should be the label of double word pointer, while it's the procedure label. Make another version of this macro which will use the "stdcall" instead of "invoke", something like:
Code: macro AddProc param { match (name),param \{ macro name [params] \\{ \\common match (args),params \\\{ stdcall name,args \\\} \\} \} } |
|||
23 Jun 2005, 07:20 |
|
KRA 23 Jun 2005, 07:30
Thanks, Now I can continue working.
|
|||
23 Jun 2005, 07:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.