You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Alberto Massari <am...@datadirect.com> on 2005/09/01 12:40:22 UTC

Re: VC++ Win32 Unicode configurations?

Hi Robert,
the Visual Studio projects are not "Unicode" version, but that should 
not be a problem for you. The Unicode projects differ from the plain 
ones as they define the _UNICODE macro that appends a W to all the 
Windows API calls, and changes the mapping of the generic types 
(TCHAR, _T, LPCTSTR and so on).
Xerces uses just a bunch of Windows API, but it directly uses the 
Unicode version if available (e.g. CreateFileW vs CreateFileA); also, 
it doesn't use the TCHAR-related macros. So, if you like, you can add 
the _UNICODE macro to the project, but you don't have to.

Hope this helps,
Alberto

At 16.41 31/08/2005 -0400, Robert William Vesterman wrote:
>I just downloaded Xerces source and started compiling, using VC++ 6.0 on
>Windows XP.  I noticed that, whereas Visual Studio automatically gives new
>projects configurations such as "Win32 Debug", "Win32 Release", "Win32
>Unicode Debug", et cetera, there were no "Unicode" ones in the Xerces
>project.
>
>My project that I want to use Xerces with must be compiled under "Win32
>Unicode <whatever>".  I am guessing that Xerces' various configurations
>actually correspond to the "Win32 Unicode <whatver>" configurations normally
>generated by Visual Studio, as opposed to the "Win32 <whatever>" ones, and
>that linking my (for example) "Win32 Unicode Debug" project to the Xerces
>"Win32 Debug" project won't cause any problems.
>
>However, I just want to make sure whether or not I am correct.  Am I? And if
>not, any hints on how I can resolve this?
>
>Thanks in advance for any help.
>
>Bob Vesterman.