LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fortran DLL with LabWindows/CVI

I want to include a Fortran DLL in a LabWindows/CVI aplication but
I can´t, when I try to include the Fortran DLL´s library , pop up the message:
Static libraries cannot contain import libraries.
Is there some way to include a Fortran DLL ?
0 Kudos
Message 1 of 2
(3,352 Views)
To call fortran library from LabWindows and C\C++ you should know the functions prototypes
the simplest way - get function decription from its fortran code and create C header file. If you do it, you should have a lib file, wich contains definition of fortran function. It creates togeter with dll file during compilation.

If you have no lib file, you may use LoadLibrary function to load dll file into computers memory.
Then you call GetProcAddress to get addres of function you want to use
call it.

For this method you should define type of pointer to function

int (*pt2Func)(float, char, char)
0 Kudos
Message 2 of 2
(3,024 Views)