ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using dll without header file

Hi, I have a .DLL file however i do not have the corresponding .h file. How can I use it in Labwindows/CVI?

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

Search online and CVI documentation for dynamic or explicit linking.

 

https://www.ni.com/en-tr/support/documentation/supplemental/09/calling-a-dll-in-labwindows--cvi---ex...

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 3
(1,677 Views)

While the previous poster is technically correct you still need to know what functions you can link to (the easy part) and what the function prototype is (only really possible if you have a good documentation of those functions). You need to be able to setup function pointer typedefs with the right calling convention and parameter datatypes to call those imported functions properly.

 

Basically the headers are the absolute minimum, the dynamic linking as explained can help if you have no import library available or the presence of the dynamic library is optional and its absence should not prevent your application from starting up.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(1,591 Views)