Windows 2k to XP Build Problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Graham (Graham_at_discussions.microsoft.com)
Date: 02/07/05


Date: Mon, 7 Feb 2005 00:41:02 -0800

My project (VS 7.1) builds and run OK on my Windows 2K PC, but when I clean
the solution and copy it over to a Windows XP PC in our lab I get loads of
error, (see below) I cant seem to find the cause.

The code HAS NOT changed!

I did check that the copied project still builds on the Windows 2K PC and it
does.

c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(1553): error C2059: syntax error :
')'c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(1640): error C2059: syntax error :
')'c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(1647): error C2059: syntax error :
')'\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinDef.h(205): error C2143: syntax error :
missing ';' before '*'c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(1620): error C2143: syntax error :
missing ';' before '__stdcall'c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(1553): error C2146: syntax error :
missing ')' before identifier 'hResData'c:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1560): error C2146: syntax
error : missing ')' before identifier 'hResData'c:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(5216): error C2146:
syntax error : missing ';' before identifier 'CompletionPort'c:\Program
Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinNT.h(5216): error C2146: syntax error :
missing ';' before identifier 'CompletionPort'



Relevant Pages

  • Windows XP Problem
    ... My project builds and run OK on my Windows 2K PC, ... missing ';' before '__stdcall'c:\Program Files\Microsoft Visual Studio .NET ...
    (microsoft.public.dotnet.general)
  • Winbase.h problem with Windows XP
    ... My project builds and run OK on my Windows 2K PC, ... missing ';' before '__stdcall'c:\Program Files\Microsoft Visual Studio .NET ...
    (microsoft.public.vsnet.setup)
  • Re: WTL and winbase.h
    ... missing ';' before identifier 'Internal' ... missing ';' before identifier 'InternalHigh' ...
    (microsoft.public.vc.language)
  • Re: Syntax error of afxwin.h
    ... _CE_ACTIVEX was not defined because this Windows CE SDK does not have ... C:\Program Files\Microsoft Visual Studio ... missing ')' before 'constant' ... BOOL SHDoneButton; ...
    (microsoft.public.pocketpc.developer)
  • Moving project from Windows 2000 to Windows xp
    ... I copied my project from a Windows 2000 PC to a Windows XP PC, ... Visual Studio 7.1 is installed on both PCs. ... missing ';' before '*' ...
    (microsoft.public.vsnet.general)