Paul,
You probably can try to create dll-wrapper CIN, where you'll have to
initialize "result", run .dll calls and copy result data to LV handle
for string or cluster of exact "result" binary structure.
LV mostly work with handles instead of pointers to get data structures
into diagram. If you want to get data structure into LV, you should
pass/receive handle to/from dll.
By pointer you can get only number as a reference to data structure for
further passing to another dll call for processing.
Nothing more to suggest without strong knowledge of your "result"
structure and dll behaviour.
These issues are well described in CIN reference manual and LabVIEW
advanced I course kit manual, available from NI.
Regards,
--
Sergey Krasnishov
_______________
_____________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
Paul wrote:
> 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