LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Function Prototype calling dll

Is there any way to automatically import the function prototype using
LabVIEW Call Library Function??
It is very boring write every time the function prototype.....

Thank You
Alessio Colzi
0 Kudos
Message 1 of 5
(3,574 Views)
In LabView 6 or 7, on the Configure screen for the Call Library Function, browse to the DLL file, then click on the arrow to the right of the Funtion Name box to see the list of functions LabView found.
0 Kudos
Message 2 of 5
(3,574 Views)
Al S,

that's only the half truth for the question. You can see the function names but the protoype will always be void (void); if you do not have a include file in the same directory (Tested with shell32.dll).

With a DLL created by MS Visual C++ with the include (*.h), export library (*.exp) and library (*.lib) in the same folder I also get only the function names and no correct prototypes.

With a DLL created with LabVIEW and the include file in the folder I get the function names and the correct prototypes.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 5
(3,574 Views)
If the dll includes the type library, then the prototype will automatically be filled out for you. Both CVI and LabVIEW include the type library.

If you are using a third party DLL and they did not include the type library, then you will have to configure the prototype.

If you end up using the same dll / function multiple times I would create one VI that does the CLF, and create a connector pane for it. Then use that VI each time, rather that configuring the CLF multiple times.
0 Kudos
Message 4 of 5
(3,574 Views)
Thank you for your answer.
The DLL is created with MS Visual C++ 6.0, but I don't know how to include
the type library.
Is it possible to create a DLL wich include type library with Visual C++
6.0???

Alessio Colzi
0 Kudos
Message 5 of 5
(3,574 Views)