LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call DLL functions and Pointers

Hi, I'm making use of LV's "call library function" vi and I need to pass a
pointer as an argument to the dll function, but I don't know how to create
a pointer in LV. What I need to do is equivalent to:

int32 result;
int32 stat = SomeDllFunction(&result);

where SomeDllFunction stores a result in "result". I am confused because
in LV I configure the "call Dll function" as
int32 SomeDllFunction(Int32 *result);

so I think I need to pass a pointer as the first argument but I can only
pass some number into the node (as far as I know). I believe that this number
would refer to some memory block that I probably don't want to overwrite.
Is this correct? What can I do?
Thanks
0 Kudos
Message 1 of 1
(2,507 Views)