Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Specific
A _variant_t object encapsulates the VARIANT data type. The class manages resource allocation and deallocation and makes function calls to VariantInit and VariantClear as appropriate.
Construction
| Name | Description |
|---|---|
| _variant_t | Constructs a _variant_t object. |
Operations
| Name | Description |
|---|---|
| Attach | Attaches a VARIANT object into the _variant_t object. |
| Clear | Clears the encapsulated VARIANT object. |
| ChangeType | Changes the type of the _variant_t object to the indicated VARTYPE. |
| Detach | Detaches the encapsulated VARIANT object from this _variant_t object. |
| SetString | Assigns a string to this _variant_t object. |
Operators
| Name | Description |
|---|---|
| Operator = | Assigns a new value to an existing _variant_t object. |
| operator ==, != | Compare two _variant_t objects for equality or inequality. |
| Extractors | Extract data from the encapsulated VARIANT object. |
END Microsoft Specific
Requirements
Header: <comutil.h>
Lib: comsuppw.lib or comsuppwd.lib (see /Zc:wchar_t (wchar_t Is Native Type) for more information)