LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically call DLLs in CVI

    I'm thinking of an application CVI. I have several DLLs(including .h file) under a folder and in future more DLLs will be put into that folder as an extension application/plug. These DLLs have the same input and output format. A UIR based exe application built in CVI will call certain DLL under that folder according to the value of a control on that UIR. I don't know how to have that function in CVI,that is to say,how to dynamically call DLLs in CVI?  An example is prefered.
    Currently, the problem I encountered is if I want to call an external DLL, I have to include its .lib and .h file in project. However, what I would like to see is I can call DLL without including its lib and .h file in project.

Thanks!
Jacky
0 Kudos
Message 1 of 3
(3,168 Views)
You could use the combination of LoadLibrary(), GetProcAddress() and FreeLibrary() SDK functions.
 
JR
0 Kudos
Message 2 of 3
(3,157 Views)
 

More information on how to access dlls from CVI can be found here

http://zone.ni.com/devzone/conceptd.nsf/webmain/1d0c73348d50de5486256faf00614757?OpenDocument 

and here

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6BaSAK&l=en-US

 

Message Edited by mvr on 05-04-2006 11:09 AM

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