ni.com is currently undergoing scheduled maintenance.

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

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Access pointer in Object Reference property through C API

Solved!
Go to solution
I use Object Reference properties to store pointers. I now need to access these pointers through the C API. I searched the documentation, header files and net but haven't found any way to do it. TS_PropertyGetValIDispatch does return something, but I don't even know what it is. Does anybody have any idea how this can be done? Thanks, Marcel
0 Kudos
Message 1 of 2
(1,398 Views)
Solution
Accepted by topic author MarcelK

Answering my own question for future readers: using Get/SetValVariant one can get and set pointer properties. Get returns an IDispatch variant for normal Object References and an unsigned integer variant for Object References containing a pointer.

Message 2 of 2
(1,347 Views)