silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Sun Sep 05, 2004 6:59 pm Post subject: Calling routines in a Win32 C/C++ DLL from FTN95 |
|
|
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.
You must also link with the DLL after compiling your FTN95 source code. For more information on this please see the "Win32 platform -> Using the linker -> Executables -> Direct linking with DLLs" section in the FTN95 Users Guide.
You should now be able to call the routines in the usual way. |
|