ni.com is currently undergoing scheduled maintenance.

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

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure a call library function node for a function whose argument is a data type defined in windows API

I want to configure call library function node for a function which has the argument of type HANDLE which is a data type defined in the windows API.
The function prototype is  void CanGetReceiveEvent(int handle, HANDLE *hevent);
 
 
 
HANDLE is declared as
 
typedef PVOID HANDLE;
 
and PVOID is pointer to any type and is declared as
 
typedef void *PVOID;
 
 
 
can the call library function node be configured for such data types.
0 Kudos
Message 1 of 3
(3,010 Views)
hi Vandana,
 
Can U tell us what Dll are U trying to call in Ur application ?
 
I'm not quite sure, but I think sometimes U can define the datatype as "Adapt to Type" in case of ambiguity, like the situation wherein U need to pass a numeric array which can be Signed or Unsigned or Double.
 
Also see the Data format ring in teh CLF configure window, U can see the thing "Poinnters to Handles".
 
Try like this & update here, experts will surely help U out better than me.
 
Partha.
- Partha ( CLD until Oct 2027 🙂 )
Message 2 of 3
(3,007 Views)
 
Hi Partha,
 
 
I am using the DLL for CAN interface(7841.dll). 
 
If I use Adapt to Type for the argument, I think I should give a control to this argument. So, control of which data type should be given ot this. 
 
Please clarify
 
 
 
 
 
 
0 Kudos
Message 3 of 3
(2,999 Views)