forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Calling routines in a Win32 C/C++ DLL from FTN95 .NET

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> KBase
View previous topic :: View next topic  
Author Message
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 191
Location: Manchester

PostPosted: Sun Sep 05, 2004 7:01 pm    Post subject: Calling routines in a Win32 C/C++ DLL from FTN95 .NET Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> KBase All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group