From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

c# invoke dll built by labview. How?

I want to use some dll built by Labview in VS2010 C# environment. Could someone can share a simple example to illustrate what to do that? 

I also dowload an example from website and attach it as reference. But when the application running, it has an error: 

Capture.PNG

It is appreciated that you can fix this bug for me. Many thanks!

0 Kudos
Message 1 of 2
(3,748 Views)

The error occur in a x64 System?

 

If yes, so be sure, that the c# App is 32 bit. Your Test.dll is 32 bit.

Loading a 32 bit dll in x64 App result in a BadImageFormatException.

0 Kudos
Message 2 of 2
(3,670 Views)