Hi Deba,
At 12.31 04/10/2006 +0530, Debashis Tripathy wrote:
Hi,
I need to implement XERCES-C on a MFC project. I need to know the extent of
Unicode Support provided by XERECES. My question is, whenever I need to pass
a literal string (for eg: "my string") to one of the XRECES library methods,
can I pass a unicode string (eg _T("my string") or L"my string") instead?
On Windows platforms, wherever you see XMLCh* you can use L"my
string" or _T("my string") if you have defined the _UNICODE macro.
Also, wherever XERCES expects a parameter of type "const char*", is it OK to
pass a "const _TCHAR*" or "LPCTSTR" instead?
In this case _T("my string")/LPCTSTR/TCHAR* can only be used if the
_UNICODE macro is NOT defined.
Hope this helps,
Alberto