Ron, > Many thanks Jose, but this is incorrect - MultiByteToWideChar() does > support empty strings, and does return the length INCLUDING the > termination.
Yes, you're right. I had this modification here for some months, but I'm not 100% sure why. I remember something about a problem of a Xailer's user sending an empty string to MS Access, which was solved so, but I cannot find that example to test again. ITOH, this change doesn't make anything to fail, IMO, while it only causes that hb_oleAnsiToSysString() returns an empty BSTR instead a NULL pointer when it receives a NULL or MultiByteToWideChar() fails for any reason. Every piece of code that was working before is also working now. However, if you want I may revert that change. Regards, Jose F. Gimenez ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers