LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a DLL not generated with CVI (I just have the .dll file)?

I have the .dll of an instrument and I want to use it in a Labwindows/CVI program. But I just have the .dll (I don´t have the .h or the .lib). How can I use the dll then?

Thank you very much
0 Kudos
Message 1 of 3
(2,728 Views)
Hello,
You don't need a .lib file, but you really need the .h file, so that your CVI program knows the parameters of all the DLL functions called from it. Otherwise, your program would not compile.

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,728 Views)
Your .h file doesn't need to include all the functions in the DLL, just the ones you're trying to call. The compiler needs the function prototype info so it can compile your program. You need to know the function prototype info so you can create the call to the DLL function.
0 Kudos
Message 3 of 3
(2,728 Views)