LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to import VB.NET dll into LabWindows/CVI?

I'm trying to call VB.NET dll from LabWindows/CVI. I can import a reference to the dll, but CVI was unable to recognize the methods within the Class.
0 Kudos
Message 1 of 2
(3,358 Views)
Hi,

Since CVI is a C programming language it will not be able to call methods or access members in a exported class. Probably the easiest way to get around this, is to create a wrapper DLL in a language that can access exported classes.

Basically you create a C exported function in the wrapper DLL that calls the method that you want to access in the .NET DLL. At the end you have a DLL that exports a C function for every method in the .NET DLL.

I hope this helps!

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(3,358 Views)