Add support for VT_UI8 OLE VARIANT type
Convert it to and from wxULongLong, as just as we already convert between VT_I8 and wxLongLong. Closes #24115.
This commit is contained in:
parent
5ba009e861
commit
0965698c58
1 changed files with 9 additions and 1 deletions
|
|
@ -299,7 +299,12 @@ WXDLLEXPORT bool wxConvertVariantToOle(const wxVariant& variant, VARIANTARG& ole
|
|||
oleVariant.vt = VT_I8;
|
||||
oleVariant.llVal = variant.GetLongLong().GetValue();
|
||||
}
|
||||
#endif
|
||||
else if (type == wxT("ulonglong"))
|
||||
{
|
||||
oleVariant.vt = VT_UI8;
|
||||
oleVariant.ullVal = variant.GetULongLong().GetValue();
|
||||
}
|
||||
#endif // wxUSE_LONGLONG
|
||||
else if (type == wxT("char"))
|
||||
{
|
||||
oleVariant.vt=VT_I1; // Signed Char
|
||||
|
|
@ -469,6 +474,9 @@ wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant, long fla
|
|||
case VT_I8:
|
||||
variant = wxLongLong(oleVariant.llVal);
|
||||
break;
|
||||
case VT_UI8:
|
||||
variant = wxULongLong(oleVariant.ullVal);
|
||||
break;
|
||||
#endif // wxUSE_LONGLONG
|
||||
|
||||
case VT_I4:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue