Hi,
What you are doing now is:
BOOL GetCursorPos(
LPPOINT lpX // cursor's X
LPPOINT lpY // cursor's Y
);
This is not correct! The Api pop only one parameter from stack, and returns
to the second. The second parameter should be the return andress (set
automatically), but in your case it's a pointer to lpY! So LV crashes!
This is the prototype of GetCursorPos:
BOOL GetCursorPos(
LPPOINT lpPoint // cursor position
);
Wire a cluster to the first parameter (set the dll to "adapt to type"). the
cluster should have two U32's in it.
Regards,
Wiebe.
"_K_"
wrote in message
news:5065000000080000004C780000-1042324653000@exchange.ni.com...
> I'm able to get the x axis information by setting arg1 to
> TYPE=Numeric, DATA TYPE=Signed 32-b
it Integer, PASS=Pointer to Value.
> I wired a zero to the input.
> When I setup arg2 the same, LabView crashes.???
> This is the first time I've attempted to access a dll, and I'm not
> sure I'm on track with the operation and I appreciate any help with
> this matter.