LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use a dll which export a function with uncertainty parameters

I have created a dll in labwindowscvi5.0.1,the export function of dll has several uncertainty parameters(I mean these parameters will be given value at the time other program use the dll,for example:function(channel,gain)).Now I will use the dll in vc++6.0,I want to pass value to the parameters of export function of dll in vc++6.0,and run my program to get result.But I don't know how to do it in vc++6.0,I need a sample.I look for the sample in your resource library,but only find a sample dll which export a function(void).If you know,please tell me.

thanks
0 Kudos
Message 1 of 2
(2,829 Views)
Hey there -

I think you just want to call a dll created in CVI from VC++? Correct? Calling a function from a dll with input arguments is very easy - you do not change the method of calling a dll, just call the dll as you normally would. For more help about dlls and VC++, check out http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/winbase/dll_512r.htm
It is a page that describes dlls in Microsoft and how to use them in VC++.

Check out the attached example, it calls a dll made in CVI from VC++, among other things.

Good luck -
ben schulte
national instruments
0 Kudos
Message 2 of 2
(2,829 Views)