LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in using ActiveX to retrieve a VARIANT

Solved!
Go to solution

Need help in using ActiveX to retrieve a VARIANT.

 

Variant is shown as       var{VT_Ul1,1}  in debug

 

Using the following

 

hr = CA_VariantGetShort (&var, &value);

 

I get 0 for my answer instead of 1.

 

0 Kudos
Message 1 of 2
(2,979 Views)
Solution
Accepted by topic author rawpaw

Answered my own question.

 

VT_Ul1 is an unsigned char and not a short.

 

0 Kudos
Message 2 of 2
(2,978 Views)