#include <xsi_value.h>
Public Attributes |
|
| short | sval |
| LONG | lval |
| float | fval |
| double | dval |
| bool | bval |
| wchar_t * | pwval |
| siPtrType | pval |
| signed char | cval |
| unsigned char | ucval |
| CValueArray * | paval |
| unsigned short | usval |
| ULONG | ulval |
CValue val((short)255); // good but not recommended short wrong = val.sval; // right way to do it short good = (short)val; CComAPIHandler uitoolkit; uitoolkit.CreateInstance( L"XSI.UIToolkit"); CValue dispVal = uitoolkit.GetRef(); // wrong way of accessing a COM object from a CValue, could return // an invalid pointer IDispatch* pDisp = dispVal.pval; // this is the right way to do it IDispatch* pDisp = (IDispatch*)(CValue::siPtrType)dispVal;
4 bytes signed integer number value (-2147483648..2147483647)
float value
double value
bool value
CString value
pointer value
byte value
unsigned byte value
Array value
2 bytes unsigned integer number value (0..65535)
4 bytes unsigned integer number value (0..4294967295)