Index   Commented   Search   About

VARTYPE

VARTYPE is an enumeration type used in VARIANT, TYPEDESC, OLE property sets, and safe arrays. The enumeration constants listed below are valid in the vt field of a VARIANT structure.

typedef unsigned short VARTYPE;

enum VARENUM{

VT_EMPTY = 0, // Not specified

VT_NULL = 1, // Null

VT_I2 = 2, // 2-byte signed int

VT_I4 = 3, // 4-byte signed int

VT_R4 = 4, // 4-byte real

VT_R8 = 5, // 8-byte real

VT_CY = 6, // Currency

VT_DATE = 7, // Date

VT_BSTR = 8, // Binary string

VT_DISPATCH = 9, // IDispatch FAR*

VT_ERROR = 10, // SCODE

VT_BOOL = 11, // Boolean; True=-1, False=0

VT_VARIANT = 12, // VARIANT FAR*

VT_UNKNOWN = 13, // IUnknown FAR*

VT_UI1 = 17, // Unsigned char

.

. //Other constants that are not valid in VARIANTs

.

};

VT_RESERVED = (int) 0x8000

// By reference: a pointer to the data is passed

VT_BYREF = (int) 0x4000

VT_ARRAY = (int) 0x2000 // A safe array of the data is passed

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun