In my experience that is true.  We were able to get away with it before moving 
to Linux.
john


-----Original Message-----
From: David Webber [mailto:[email protected]] 
Sent: Tuesday, January 05, 2010 11:49 AM
To: [email protected]
Subject: XMLCh class

Am I right in thinking that in a program purely for a Windows XML/Vista/7 
platform, which uses all character strings in the native UTF-16 format,  I 
can interchange XMLCh and wchar_t with no worries?
For example

XMLCh string[] = L"This is a standard unicode string";

And then when a Xerces API function requires an argument of type  const 
XMLCh * , I can just pass it this string?

In other words are all the XMLString routines just there to give platform 
independence (in particular on platforms for which UTF-16 is not native)?

The reason I ask is that it would be nice to be able to use the c runtime 
library for string manipulation and/or MFC and STL string classes.   (I have 
no intention of going beyond the Windows environment.)

Dave
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm

 

Reply via email to