|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
|
Hi fellow scripters,
Can someone direct me to the documentation of the variant types in the XSI documentations (if any).
I can figure out these one:
VT_BOOL = Boolean
VT_I1 = Byte
VT_I2 = Integer (short, 2 bytes)
VT_I4 = Integer (Long, 4 bytes)
VT_R4 = Single (32 bits, floating point numbers, 4 bytes)
VT_R8 = Double (64 bits, floating point numbers, 8 bytes)
I am not sure about those one:
VT_CY = Currency
VT_DATE = Date / time
VT_ERROR = Error
VT_EMPTY = Empty
VT_NULL = Null
VT_SAFEARRAY = Array of type
VT_DISPATCH = Object
What is the Variant Type (VT_) for:
String (VT_BSTR ??)
Array of Variant (VT_SAFEARRAY ???)
OLE Automation Object
Data Access Object
Thank you for your help!
|
|
|
|
Hello Everyone, me again.
Really what I need is a confirmation that the VARENUM used by XSI are as per the win32 and COM specification below.
[FONT=Times New Roman]// VARENUM usage key,[/FONT]
[FONT=Times New Roman]// [/FONT]
[FONT=Times New Roman]// [V] - May appear in a VARIANT.[/FONT]
[FONT=Times New Roman]// [T] - May appear in a TYPEDESC.[/FONT]
[FONT=Times New Roman]// [P] - may appear in an OLE property set.[/FONT]
[FONT=Times New Roman]// [S] - May appear in a Safe Array.[/FONT]
[FONT=Times New Roman]// [/FONT]
[FONT=Times New Roman]// [/FONT]
[FONT=Times New Roman]VT_EMPTY [V] [P] // Not specified.[/FONT]
[FONT=Times New Roman]VT_NULL [V] // SQL-style Null.[/FONT]
[FONT=Times New Roman]VT_I2 [V][T][P][S] // 2-byte signed int.[/FONT]
[FONT=Times New Roman]VT_I4 [V][T][P][S] // 4-byte-signed int.[/FONT]
[FONT=Times New Roman]VT_R4 [V][T][P][S] // 4-byte real. [/FONT]
[FONT=Times New Roman]VT_R8 [V][T][P][S] // 8-byte real.[/FONT]
[FONT=Times New Roman]VT_CY [V][T][P][S] // Currency.[/FONT]
[FONT=Times New Roman]VT_DATE [V][T][P][S] // Date.[/FONT]
[FONT=Times New Roman]VT_BSTR [V][T][P][S] // Automation string.[/FONT]
[FONT=Times New Roman]VT_DISPATCH [V][T] [S] // IDispatch.Far*[/FONT]
[FONT=Times New Roman]VT_ERROR [V][T] [S] // Scodes.[/FONT]
[FONT=Times New Roman]VT_BOOL [V][T][P][S] // Boolean; True=-1, False=0.[/FONT]
[FONT=Times New Roman]VT_VARIANT [V][T][P][S] // VARIANT FAR*.[/FONT]
[FONT=Times New Roman]VT_DECIMAL [V][T] [S] // 16 byte fixed point.[/FONT]
[FONT=Times New Roman]VT_RECORD [V] [P][S] // User defined type[/FONT]
[FONT=Times New Roman]VT_UNKNOWN [V][T] [S] // IUnknown FAR*.[/FONT]
[FONT=Times New Roman]VT_I1 [V][T] [S] // Char.[/FONT]
[FONT=Times New Roman]VT_UI1 [V][T] [S] // Unsigned char.[/FONT]
[FONT=Times New Roman]VT_UI2 [V][T] [S] // 2 byte unsigned int.[/FONT]
[FONT=Times New Roman]VT_UI4 [V][T] [S] // 4 byte unsigned int. [/FONT]
[FONT=Times New Roman]VT_INT [V][T] [S] // Signed machine int.[/FONT]
[FONT=Times New Roman]VT_UINT [V][T] [S] // Unsigned machine int.[/FONT]
[FONT=Times New Roman]VT_VOID [T] // C-style void.[/FONT]
[FONT=Times New Roman]VT_HRESULT [T] [/FONT]
[FONT=Times New Roman]VT_PTR [T] // Pointer type.[/FONT]
[FONT=Times New Roman]VT_SAFEARRAY [T] // Use VT_ARRAY in VARIANT.[/FONT]
[FONT=Times New Roman]VT_CARRAY [T] // C-style array.[/FONT]
[FONT=Times New Roman]VT_USERDEFINED [T] // User-defined type.[/FONT]
[FONT=Times New Roman]VT_LPSTR [T][P] // Null-terminated string.[/FONT]
[FONT=Times New Roman]VT_LPWSTR [T][P] // Wide null-terminated string.[/FONT]
[FONT=Times New Roman]VT_FILETIME [P] //FILETIME[/FONT]
[FONT=Times New Roman]VT_BLOB [P] //Length prefixed bytes[/FONT]
[FONT=Times New Roman]VT_STREAM [P] //Name of the stream follows[/FONT]
[FONT=Times New Roman]VT_STORAGE [P] //Name of the storage follows[/FONT]
[FONT=Times New Roman]VT_STREAMED_OBJECT [P] //Stream contains an object[/FONT]
[FONT=Times New Roman]VT_STORED_OBJECT [P] //Storage contains an object[/FONT]
[FONT=Times New Roman]VT_BLOB_OBJECT [P] //Blob contains an object[/FONT]
[FONT=Times New Roman]VT_CF [P] //Clipboard format[/FONT]
[FONT=Times New Roman]VT_CLSID [P] //A Class ID[/FONT]
[FONT=Times New Roman]VT_VECTOR [P] //simple counted array[/FONT]
[FONT=Times New Roman]VT_ARRAY [V] // SAFEARRAY*.[/FONT]
[FONT=Times New Roman]VT_BYREF [V][/FONT]
[FONT=Times New Roman]VT_RESERVED[/FONT]
Your help is greatly appreciated. Cheers!
|
|
|
|
OK, I think I found the answer. This should allow me to understand the Variant Type (VT_xx) code used in SPDLs and the type used in VBScript / JS / C++ / C#.
Here is the condense version from the SDK for future reference.
Cheers!
|
|
|
|
|
|