flat assembler
Message board for the users of flat assembler.
Index
> Windows > calling api functions |
Author |
|
Tomasz Grysztar 17 Jun 2004, 15:41
The labels for API calls are actually labels to pointers to the functions, not to the functions themselves. Therefore you have to call them this way:
Code: push MB_OK or MB_ICONEXCLAMATION push Caption push Text push NULL call [MessageBox] ;invoke MessageBox,NULL,Text,Caption,MB_OK or MB_ICONEXCLAMATION push NULL call [ExitProcess] ;invoke ExitProcess,NULL Note use of the square brackets inside the invoke macro. |
|||
17 Jun 2004, 15:41 |
|
MSBob 17 Jun 2004, 18:26
Privalov wrote: The labels for API calls are actually labels to pointers to the functions, not to the functions themselves. Therefore you have to call them this way: Thanks for the explanation, it works now. I obviously still have a lot to learn |
|||
17 Jun 2004, 18:26 |
|
vid 17 Jun 2004, 19:47
i am sure i explained this question (+somewhat more) very deeply in some post, but forgot in which, maybe you could browse forum and find it
|
|||
17 Jun 2004, 19:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.