LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView C# DLL Wrapper

Solved!
Go to solution

Hello,

Using LabVIEW 2017 (64-bit).  Wanting to use the DLL import wizard to wrap the attached DLL and header file for use in communicating with a BK Precision P/S.  The code fails on some of the function calls, particularly SI_Read, and SI_Write.  Problem seems to be the structure LPOVERLAPPED which LabVIEW reports is not defined in the .h file.

 

Would the 'proper' method be to modify the .h file with a typedef, or write the DLL calls manually and use null = o as a constant for the argument?

Thanks all,

Chris

0 Kudos
Message 1 of 3
(2,255 Views)
Solution
Accepted by topic author bonnerupc

@bonnerupc wrote:

 

 

Would the 'proper' method be to modify the .h file with a typedef, or write the DLL calls manually and use null = o as a constant for the argument?

 


The latter! Configure this parameter as Numeric, Pointer Sized (Unsigned) Integer, Pass: Value and wire a 0 numeric constant to it. I'm sure this library has been wrapped about umtien times already in this forum and there must be even posts with attached VI library with the result!!

Rolf Kalbermatter
My Blog
Message 2 of 3
(2,212 Views)

Thanks Rolf,

got it!

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