WinStd
Windows Win32 API using Standard C++
|
Functions | |
VARIANT & | operator<< (VARIANT &v, IDispatch *value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const CHAR value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const BYTE value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const SHORT value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const USHORT value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const LONG value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const ULONG value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const LONGLONG value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const ULONGLONG value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const FLOAT value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const DOUBLE value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const BOOL value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, LPCOLESTR value) |
Saves value to VARIANT. | |
template<class _Traits , class _Ax > | |
VARIANT & | operator<< (VARIANT &v, const std::basic_string< OLECHAR, _Traits, _Ax > &value) |
Saves value to VARIANT. | |
VARIANT & | operator<< (VARIANT &v, const GUID &value) |
Saves value to VARIANT. | |
VARIANT | winstd::BuildVBARRAY (VARTYPE vt, LPCVOID array, ULONG columns, ULONG rows) |
Builds VBARRAY of uniform data. | |
template<class T , ULONG columns = 1> | |
VARIANT | winstd::BuildVBARRAY (const T *array, ULONG rows) |
Builds VBARRAY of uniform data. | |
VARIANT | winstd::BuildVBARRAY (HDC dc, HBITMAP pic) |
Builds VBARRAY containing BMP image. | |
template<class T > | |
void | winstd::IDispatchInvoke (T *cp, DISPID id, DISPPARAMS *param, LCID locale=LOCALE_USER_DEFAULT) |
Calls IDispatch::Invoke. | |
template<class T > | |
T | winstd::VariantAsInteger (const VARIANT *var, T fallback=0) |
Check VARIANT value for integer value. | |
BOOL | winstd::VariantAsBoolean (const VARIANT *var, BOOL fallback=FALSE) |
Check VARIANT value for boolean value. | |
VARIANT winstd::BuildVBARRAY | ( | const T * | array, |
ULONG | rows ) |
Builds VBARRAY of uniform data.
This template is using operator <<(VARIANT&, const T&) to write data to VBARRAY. Such operator must be declared for given datatype T.
T | Element type |
columns | Number of columns. When 1, SafeArrayCreateVector is used; when >1, SafeArrayCreate is used. |
array | Pointer to data |
rows | Number of rows of data |
|
inline |
Builds VBARRAY containing BMP image.
[in] | dc | Drawing context |
[in] | rows | Bitmap handle |
|
inline |
Builds VBARRAY of uniform data.
[in] | vt | Type of array element |
[in] | array | Pointer to data |
[in] | columns | Number of columns. When 1, SafeArrayCreateVector is used; when >1, SafeArrayCreate is used. |
[in] | rows | Number of rows |
void winstd::IDispatchInvoke | ( | T * | cp, |
DISPID | id, | ||
DISPPARAMS * | param, | ||
LCID | locale = LOCALE_USER_DEFAULT ) |
Calls IDispatch::Invoke.
T | Original interface type |
[in] | cp | Any interface of the class that implements IDispatch |
[in] | id | ID of method to invoke |
[in] | param | Parameters for the method to invoke |
[in] | locale | Locale for the invoke call |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Saves value to VARIANT.
[out] | v | VARIANT to save value to. For performance reasons, no VariantClear is called before saving. Thus, v must not contain referenced data. |
[in] | value | Value to save |
|
inline |
Check VARIANT value for boolean value.
[in] | var | Pointer to VARIANT value |
[in] | fallback | Value to return, for non-boolean and non-numeric VARIANT types. |
T winstd::VariantAsInteger | ( | const VARIANT * | var, |
T | fallback = 0 ) |
Check VARIANT value for integer value.
T | Integral type |
[in] | var | Pointer to VARIANT value |
[in] | fallback | Value to return, for non-integral types. |