flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
MattBro 21 Nov 2003, 05:30
Looks familiar
I made the same mistake when I first started using this. More than once in fact. When I look at the actual macro definition for invoke, macro invoke proc,[arg] ; invoke procedure (indirect) { common if ~ arg eq stdcall [proc],arg else call [proc] end if } it seems that invoke uses the proc argument as a pointer to the procedure name, so it is an indirect call, whereas I suppose the proc call should be 'direct'. _________________ -- ------------------------------------------------------- "I am the Way and the Truth and the Light, no one comes to the Father except through me" - Jesus --------------------------------------------------------- |
|||
![]() |
|
eet_1024 21 Nov 2003, 05:51
stdcall is used for calls to proc's in your code.
invoke is used to call functions that are imported from a DLL, such as kernel32.dll, user32.dll, or your own dll. btw, you can push the contents of a stack frame: invoke MsgBox,HWND_DESKTOP,[AText],_error,MB_OK+MB_ICONERROR |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.