In the example provider component, code examples for storing different data types in VARIANT data types so that they can be saved as properties of an object are in property.cpp. Supported routines are listed in the following table.

get_BSTR_Property/put_BSTR_PropertyFor string properties.
get_LONG_Property/put_LONG_PropertyFor long integer properties.
get_DATE_Property/put_DATE_PropertyFor date format properties.
get_VARIANT_BOOL_Property/put_VARIANT_BOOL_PropertyFor boolean properties.
get_VARIANT_Property/put_VARIANT_PropertyFor VARIANT properties.




© 2015 Microsoft