Hello:
I've a question about VARIANT. I'm calling an ActiveX method called GetData().
VARIANT data;
Client->GetData(1, 1, 1, 1, &data);
The arguments in the .tli are as follows...
inline enum ReturnValue Server::GetData(short Address, short Parameter, short StartIndex, short NumValues, VARIANT * values)
I'm trying to get the information stored in data. However, I cannot properly interpret the information. When I debug it, I know I want data.vt to be VT_R4 -- defining the variant as a float -- but it seems that data.vt is actually 8204 when I execute the code. When I look up the .vt number online, I see that it's an array. Now, reading the documentation which came with the software, it indicates that the variable "values" is "an array of values containing the requested data."
How can I obtain the value of the variant in terms of a float?
I've a question about VARIANT. I'm calling an ActiveX method called GetData().
VARIANT data;
Client->GetData(1, 1, 1, 1, &data);
The arguments in the .tli are as follows...
inline enum ReturnValue Server::GetData(short Address, short Parameter, short StartIndex, short NumValues, VARIANT * values)
I'm trying to get the information stored in data. However, I cannot properly interpret the information. When I debug it, I know I want data.vt to be VT_R4 -- defining the variant as a float -- but it seems that data.vt is actually 8204 when I execute the code. When I look up the .vt number online, I see that it's an array. Now, reading the documentation which came with the software, it indicates that the variable "values" is "an array of values containing the requested data."
How can I obtain the value of the variant in terms of a float?