LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A problem about LabVIEW calling C program

After compiling the DLL dynamic library file, I call the C program through the "call library function node". However, after selecting the file, the following problem occurs:

屏幕截图 2022-08-24 190452.png

Prompt: the selected file is not a legal library.

I don't know what the problem is. I hope I can get your help.

0 Kudos
Message 1 of 3
(946 Views)

Is this on the same system that you used to compile the DLL?

Is this really a C(++) DLL or rather a .Net assembly?

Even Dependency Walker claims that it is not a valid COFF PE file format. So something in your build steps is very much wrong.

If you open the DLL file in a text editor it simply is an INI style file!

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(940 Views)

Are you using Windows OS?

Is your dll built on Windows?

 

George Zou
0 Kudos
Message 3 of 3
(906 Views)