LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can not import a LabVIEW 7.0 DLL in Visual Studio.net (or can't transform the DLL using TlbImp.exe)

I have read in a NI article (see attach file) that it is possible to import a LabVIEW DLL in Visual Studio.net. I have build a simple DLL (an numeric addition VI) and when i try to import the DLL using the two method(the first two method of the article):
(1) Add a reference to a type library using Visual Studio.net.
(2)Using TlbImp.exe to convert the DLL to a .net assembly DLL.

i always got the message (see error message in attach file)my DLL is not a valid type library or is not a valid COM object.

What is the problem? How Can i do this with LabVIEW 7.0 and TlbImp.exe SDK utility?

When building my dll, i have try different option "standard conventi
on ; C calling convention ; with and with no front panel etc..." i always got the same message.

Thank you for your answers.

derek
Download All
0 Kudos
Message 1 of 2
(2,923 Views)
Hi Derek,

I think that we resolved this already trough the NI Support Belgium.

I'm just gonna answer this for our discussion forum:

The dll that was created in LabVIEW 7 was indeed not valid to import as a reference in VB.NET. The problem has been fixed with LabVIEW 7.1. A dll created in 7.1 works fine in the VB.NET environment.

Regards.

Joris Vanderschrick
NI
0 Kudos
Message 2 of 2
(2,923 Views)