![]() |
|
|
#8 |
|
Архивный участник
Join Date: Jun 2005
Posts: 258
|
Any functions you want to call from your asm file must be defined with the "C" and extern modifiers in your source or header file.
Example: extern "C" funcName ( paramlist ) { . . . } or like this: extern "C" { void myFunc(); int thisFunc(int x, int y); blah blah } I've read from within your asm file you can call INVOKE <funcName>, but I tried doing that and I get an error, so I guess that's not an option anymore... So I tried just using a call <funcName> instruction and that worked fine. EDIT: Heheh .. "You do not have to use the INVOKE statement, of course. The same effect could be produced by using the CALL instruction" Well that and I think INVOKE must be outdated or at least not used in 64 bit asm |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|