LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL use in CVI

Hello
 
i work in the history with acivex but now i must use a .dll for control a another applicatíon.
Then i import the *.dll in my projekt i bekomme an error massage. "Fehler beim Einlesen der Typdate/dll"
In a another tread i read i need a *.h.
But i didn't have a *.h.
 
Can me help somewere?
 
Thanks
0 Kudos
Message 1 of 3
(3,500 Views)
 

Howdy wolf4124,

 

 

There are two different methods of calling DLLs in LabWindows/CVI which are:

 

 

1) Using an import library and header file in conjunction with your DLL
2) Using Windows SDK functions to call your DLL

 

 

 For lots of detail on these topics, refer to KnowledgeBase How Do I Link to Functions Defined in a Dynamically Linked Library (DLL) from LabWINDOWS/CVI?, and How Can I Access DLL Functions in a LabWindows/CVI Program without Including the Import Library in t...

 

 

Method 1 is typically the easiest method to use. When you use the functions of a DLL in one of your programs, you must add the import library to your project so that it gets linked into the program. Along with that, you also must call the functions in the DLL according to the prototypes in the DLL header file. If you don't include the header file, you will get "Missing prototypes" errors when trying to access the DLL functions. If you don't include the import library, you will receive "Undefined symbol" errors.

 

 

Refer to the cvidll.prj example located in the Example Finder by selecting the Browse tab and then navigating to Communicating with External Applications >> Using External Code >> Integrating DLLs.

 

 

Hope this helps!

 

 

Best Regards,

 

Jonathan N.
National Instruments
Message 2 of 3
(3,481 Views)

Thanks for your answer.
I use now the first methods.
I didn't have the header files but i know the funktion-calls.
I created the header-file and after this i created the lib with the asistant.
Now i can use the DLL in my Projekt.

By

0 Kudos
Message 3 of 3
(3,446 Views)