Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change VARIANT* XPos and YPos in Cursorchange function to double value?

i'd like to know the x and y position of the cursor after repositioning it....
but i don't know how to get the x and y coordination in double value...
by using cursorchange function in cnigraph, i think there might be something there, but i could figure it out....
so anyone... any ideas???
0 Kudos
Message 1 of 2
(2,953 Views)
You can use the CNiVariant class to convert the variant value to a double value. You can create a CNiVariant by passing the variant to the CNiVariant constructor, then you can cast the CNiVariant to a double to get the double value.

- Elton
0 Kudos
Message 2 of 2
(2,949 Views)