flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
pearlz 22 Oct 2010, 05:08
I do not see the difference between invoke vs cinvoke?
invoke n cinvoke in my machine return one value my asembler version is 1.69.25 |
|||
![]() |
|
revolution 22 Oct 2010, 07:15
pearlz: For that small example you are using the "c"invoke won't make any difference because you are immediately calling ExitProcess and the OS will clean everything up. But once you start to use that code in a real application then things can start to go haywire because your stack gets messed up.
BTW: wsprintf is the ONLY Win32 API function that needs cinvoke. All the others use invoke. |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.