Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Error in OLE?
Error in OLE? [message #29750] |
Sun, 14 November 2010 11:03 |
borbek
Messages: 31 Registered: November 2010 Location: Russia
|
Member |
|
|
function AsValue skip VT_BOOL
now:
case VT_NULL: return Null;
case VT_UI1: return (int)variant.bVal;
case VT_I2: return (int)variant.iVal;
case VT_I4: return (int)variant.lVal;
may need to add?:
case VT_NULL: return Null;
----> case VT_BOOL:
case VT_UI1: return (int)variant.bVal;
case VT_I2: return (int)variant.iVal;
case VT_I4: return (int)variant.lVal;
in function AsVariant:
now:
case DOUBLE_V: out.vt = VT_R8; out.dblVal = value; break;
case STRING_V:
case WSTRING_V: out.vt = VT_BSTR; out.bstrVal = StringToBSTR(value); break;
case DATE_V: out.vt = VT_BSTR; out.bstrVal = WStringToBSTR(value); break;
case TIME_V: out.vt = VT_DATE; out.date = ToDATE((Time)value);
may properly be as follows:
case DOUBLE_V: out.vt = VT_R8; out.dblVal = value; break;
case STRING_V: out.vt = VT_BSTR; out.bstrVal = StringToBSTR(value); break;
case WSTRING_V: out.vt = VT_BSTR; out.bstrVal = WStringToBSTR(value); break;
case DATE_V:
case TIME_V: out.vt = VT_DATE; out.date = ToDATE((Time)value);
[Updated on: Sun, 14 November 2010 19:33] Report message to a moderator
|
|
|
Re: Error in OLE? [message #29770 is a reply to message #29750] |
Mon, 15 November 2010 19:46 |
rylek
Messages: 79 Registered: November 2005
|
Member |
|
|
Hi there!
Thanks for the STRING_V / WSTRING_V bug; all your comments look sensible, I've just applied them, they are available on the live U++ tree.
Regards
Tomas
|
|
|
Goto Forum:
Current Time: Fri Sep 20 07:10:37 CEST 2024
Total time taken to generate the page: 0.03049 seconds
|