Thanks Alberto -

Your suggestion did the trick for a build. I replaced the two
instances of #include "winres.h" in version.rc, and the build worked.

I wonder if it is worth doing something like

#ifdef _MFC_VER
#include "winres.h"

#ifndef _MFC_VER
#include "winver.h"
#include "winnt.h"

to avoid this problem for other inexperienced Express edition users?

Thanks again,
Ben

On Fri, Oct 2, 2009 at 2:21 AM, Alberto Massari <amass...@datadirect.com> wrote:
> Hi Ben,
> Xerces 2.x required the MFC headers to compile the resources, but the
> Express edition of the Visual Studio tools doesn't have it. You should be
> able to workaround the problem by replacing the #include "winres.h" with
>
> #include "winver.h"
> #include "winnt.h"
>
> Alberto
>
> Ben Heavner wrote:
>>
<snip>
>> attempting to build Xerces 2.8.0 with Microsoft Visual C++ Express
>> 2008 and the Windows SDK for Windows Server 2008 and .NET Framework
>> 3.5 on a Windows XP box.
>>
>> My attempt at building Xerces 2.8.0 has failed,
<snip>
>> 1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
>> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
>> 1>..\..\..\..\..\src\xercesc\util\Platforms\Win32\Version.rc(10) :
>> fatal error RC1015: cannot open include file 'winres.h'.

Reply via email to