Leica Microsystems Heidelberg GmbH
VARIANT and VARIANTARG
typedef struct FARSTRUCT tagVARIANT VARIANT;
typedef struct tagVARIANT
VARTYPE vt;
unsigned short wReserved1;
unsigned short wReserved2;
unsigned short wReserved3;
union {
unsigned char
short
long
float
double
VARIANT_BOOL
SCODE
CY
DATE
BSTR
IUnknown
IDispatch
SAFEARRAY
unsigned char
short
long
float
double
VARIANT_BOOL
SCODE
CY
DATE
BSTR
IUnknown FAR*
IDispatch FAR*
SAFEARRAY FAR*
VARIANT
void
};
};
En archivos con formato "LEI" nunca se utilizan punteros como parámetros.
VARTYPE
typedef unsigned short VARTYPE;
enum VARENUM{
VT_EMPTY
= 0,
VT_NULL
= 1,
VT_I2
= 2,
VT_I4
= 3,
VT_R4
= 4,
VT_R8
= 5,
VT_CY
= 6,
VT_DATE
= 7,
VT_BSTR
= 8,
VT_DISPATCH
= 9,
VT_ERROR
= 10,
VT_BOOL
= 11,
VT_VARIANT
= 12,
VT_UNKNOWN
= 13,
VT_UI1
= 17,
// Other constants that are not valid in VARIANTs omitted here.
};
VT_RESERVED
= (int) 0x8000
Manual del usuario de Leica TCS SP2 español
Art. n.º: 159330056 / Vers.: 31102002
{
bVal;
// VT_UI1.
iVal;
// VT_I2
lVal;
// VT_I4
fltVal;
// VT_R4
dblVal;
// VT_R8
boolVal;
// VT_BOOL.
scode
// VT_ERROR.
cyVal;
// VT_CY
date;
// VT_DATE.
bstrVal;
// VT_BSTR.
FAR* punkVal;
// VT_UNKNOWN.
FAR* pdispVal;
// VT_DISPATCH.
FAR* parray;
// VT_ARRAY|*.
FAR* pbVal;
// VT_BYREF|VT_UI1.
FAR* piVal;
// VT_BYREF|VT_I2.
FAR* plVal;
// VT_BYREF|VT_I4.
FAR* pfltVal;
// VT_BYREF|VT_R4.
FAR* pdblVal;
// VT_BYREF|VT_R8.
FAR* pboolVal;
// VT_BYREF|VT_BOOL.
FAR* pscode;
// VT_BYREF|VT_ERROR.
FAR* pcyVal;
// VT_BYREF|VT_CY.
FAR* pdate;
// VT_BYREF|VT_DATE.
FAR* pbstrVal;
// VT_BYREF|VT_BSTR.
FAR* ppunkVal;
// VT_BYREF|VT_UNKNOWN.
FAR* ppdispVal;
// VT_BYREF|VT_DISPATCH.
FAR* pparray;
// VT_ARRAY|*.
FAR* pvarVal;
// VT_BYREF|VT_VARIANT.
FAR* byref;
// Generic ByRef.
// Not specified.
// Null.
// 2-byte signed int.
// 4-byte signed int.
// 4-byte real.
// 8-byte real.
// Currency.
// Date.
// Binary string.
// IDispatch
// Scodes.
// Boolean; True=-1, False=0.
// VARIANT FAR*.
// IUnknown FAR*.
// Unsigned char.
Funciones del software LCS: Visión general
.
.
.
.
.
Página 63 de 320