08-09-2006 07:23 AM
08-09-2006
12:02 PM
- last edited on
11-14-2025
09:39 AM
by
Content Cleaner
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,
08-11-2006 02:19 AM
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