Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Error in OLE?
Error in OLE? [message #29750] Sun, 14 November 2010 11:03 Go to next message
borbek is currently offline  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 Go to previous message
rylek is currently offline  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
Previous Topic: [FEATURE] OSC for U++?
Next Topic: How to split a sentence into words
Goto Forum:
  


Current Time: Fri Mar 29 12:11:29 CET 2024

Total time taken to generate the page: 0.01072 seconds