LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fuction in the dll

hi
I met some difficulty.
In what way labview can call one of this function in the dll?
the function parameter is a pointer,which point to the return value.
the parameter is a LPDWORD,and the return value is DWORD.
I tried to config the parameter and retrun value in the clf (according to  the dll guide in the ni develop zone),but the error message always say the dll corrupted the labview memory.(the error message is in the appendix)
 
I do not know what can I do, how can I config the parameter and return value in the clf.
 
thanks
 
 
0 Kudos
Message 1 of 2
(2,145 Views)

LPDWORD is the same as pointer to U32 in labview.  To setup the parameter, set the parameter name, Type=Numeric, Data type=Unsigned 32-bit Integer, Pass=Pointer to Value.

One thing that can cause your error is the wrong calling convention.  The default selection is "C".  Try changing this to "stdcall (WINAPI)".

- tbob

Inventor of the WORM Global
Message 2 of 2
(2,128 Views)