silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Sun Sep 05, 2004 7:01 pm Post subject: Calling routines in a Win32 C/C++ DLL from FTN95 .NET |
|
|
To call routines in a DLL created from C/C++ code (or any code with the "cdecl" calling convention) from FTN95 you must declare them using C_EXTERNAL. For more information on C_EXTERNAL declarations, please see the "Win32 platform -> Mixed language programming -> Calling C/C++ from FTN95" section in the FTN95 Users Guide.
When linking your FTN95 source code using dbk_link you must reference the DLL using the /r switch. See the ".NET platform -> .NET Programming -> Using the linker from a command line" for more information on the /r switch.
You should now be able to call the routines in the usual way. |
|