LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

make dll

 

I can not make dll DTMF Decoder3.vi. When I created dll file, I did not get any error message. But it is not work.

When I try to add this file in the references, c# give me this error message : A reference to ".... .dll" could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

 

What is wrong? How can I make dll properly?

 

Thanks...

0 Kudos
Message 1 of 3
(1,483 Views)

Radar,

 

Hello! When you say C# gives you the error message: A reference to ".... .dll" could not be added. What does the ".... .dll" mean. Is this the .dll that you are creating? Is this another .dll? Or does it literally say ".... .dll"

 

Also, check out this article.

 

Calling LabVIEW VIs from Other Programming Languages

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 Kudos
Message 2 of 3
(1,464 Views)
You cannot add a reference to a LabVIEW DLL from C#. You can only add references to .NET assemblies or registered COM objects. For a regular DLL you must use DLLImport calls. Please look at C# tutorials on how to call DLLs, which are considered unmanaged code. You can also find an example in this thread.
0 Kudos
Message 3 of 3
(1,448 Views)