Silverfrost Forums

Welcome to our forums

Using FTN95 with MiniLab 1008

27 May 2005 6:57 #174

Does anyone have experience of using the Measurement Computing Corporation's MiniLab 1008 interface box (or any of their other cards) with FTN95?

The MiniLab comes with a library of command functions contained in a DLL but I'm not sure how to link this to my software. I've tried using the File Associate feature in Plato (I'm still using Plato2) but I get an error message saying that my software has unresolved externals. Is this to do with the DLL entry point not being compatible with FTN95?

Barry

30 May 2005 11:38 #178

If a Win32 DLL has entry points that have been exported then they should be callable from an FTN95 program. Have a look at the manual in the following section:

Win32 Platform → Mixed language programming → Calling C/C++ from FTN95

It is possible to call a DLL written in any language so long as the calling conventions are either cdecl or stdcall. You need to declare routines using C_EXTERNAL and STDCALL as appropriate.

The Salford linker slink can make direct use of DLLs and does not require lib files. To link against a DLL simply include this in the list of files provided to slink, e.g.:

SLINK myobj.obj somedll.dll -out:myexe.exe

Please login to reply.