LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library function with third party DLL typedef struct

Hi all,

 

I am struggling with a third party dll and using the call library function. There is a handle type called 'typedef struct tagST25R3911HANDLE {} * ST25R3911HANDLE; 'that is used in most of the functions. When I used the import shared library wizard labview converted it to an empty cluster structure and made it adapt to type. I can't figure out what to make of this. I've tried a few different data types, but keep getting a 1097 error. Anybody have any ideas?

 

gimongreg007_0-1594836986963.png

gimongreg007_1-1594837027377.png

 

 

0 Kudos
Message 1 of 4
(1,490 Views)

Update: figured out the problem. Had to pull a value from another function for handle value.

0 Kudos
Message 2 of 4
(1,456 Views)

Hi gimongreg007,

 

I know this thread is a from a few years ago. I am having the same issue with this same dll.

 

How did you get the value for the handle?

 

Regards

 

John

 
0 Kudos
Message 3 of 4
(512 Views)

Try to change this in the header file:

typedef struct tagST25R3911HANDLE {} * ST25R3911HANDLE;

into

typedef void * ST25R3911HANDLE;

 

That should probably let the import library wizard be happy.

 

It should generate a Numeric, Pointer sized (unsigned) Integer for this parameter.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(504 Views)