Problem in Migrating VC++ Development from Windows 2K to XP
- From: "George" <george.yu@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 May 2005 15:43:37 +0800
Hello,
I need help in resolving a compilation problem in VC++ 6.0 using DDK under
Windows XP. It worked fine under Windows 2K but I ran into problem when
moving to Windows XP. I believe the problem has something to do with the
include path. When I added the following include path:
C:\WINDDK\2600.1106\INC\DDK\WXP
I got the following compilation errors:
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
Sub1.cpp
c:\winddk\2600.1106\inc\ddk\wxp\ntddscsi.h(100) : error C2146: syntax error
: missing ';' before identifier 'DataBufferOffset'
c:\winddk\2600.1106\inc\ddk\wxp\ntddscsi.h(100) : error C2501: 'ULONG_PTR' :
missing storage-class or type specifiers
c:\winddk\2600.1106\inc\ddk\wxp\ntddscsi.h(100) : error C2501:
'DataBufferOffset' : missing storage-class or type specifiers
ColorEdit.cpp
warning: using obsolete header file usbioctl.h
Lock.cpp
Test.cpp
warning: using obsolete header file usbioctl.h
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(449) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(472) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(528) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\cfgmgr32.h(122) : error C2146: syntax error
: missing ';' before identifier 'LOG_CONF'
c:\winddk\2600.1106\inc\ddk\wxp\cfgmgr32.h(122) : fatal error C1004:
unexpected end of file found
TestDlg.cpp
warning: using obsolete header file usbioctl.h
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(449) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(472) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(528) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\cfgmgr32.h(122) : error C2146: syntax error
: missing ';' before identifier 'LOG_CONF'
c:\winddk\2600.1106\inc\ddk\wxp\cfgmgr32.h(122) : fatal error C1004:
unexpected end of file found
UIThread.cpp
warning: using obsolete header file usbioctl.h
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(449) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(472) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\usbioctl.h(528) : warning C4200: nonstandard
extension used : zero-sized array in struct/union
c:\winddk\2600.1106\inc\ddk\wxp\cfgmgr32.h(122) : error C2146: syntax error
: missing ';' before identifier 'LOG_CONF'
c:\winddk\2600.1106\inc\ddk\wxp\cfgmgr32.h(122) : fatal error C1004:
unexpected end of file found
Generating Code...
Error executing cl.exe.
But when I used the following DDK include path, I got more errors:
C:\WINDDK\2600.1106\INC\WXP
Compiling resources...
Compiling...
StdAfx.cpp
c:\winddk\2600.1106\inc\wxp\winreg.h(107) : error C2146: syntax error :
missing ';' before identifier 've_valueptr'
c:\winddk\2600.1106\inc\wxp\winreg.h(107) : error C2501: 'DWORD_PTR' :
missing storage-class or type specifiers
c:\winddk\2600.1106\inc\wxp\winreg.h(107) : error C2501: 've_valueptr' :
missing storage-class or type specifiers
c:\winddk\2600.1106\inc\wxp\winreg.h(113) : error C2146: syntax error :
missing ';' before identifier 've_valueptr'
c:\winddk\2600.1106\inc\wxp\winreg.h(113) : error C2501: 'DWORD_PTR' :
missing storage-class or type specifiers
c:\winddk\2600.1106\inc\wxp\winreg.h(113) : error C2501: 've_valueptr' :
missing storage-class or type specifiers
c:\winddk\2600.1106\inc\wxp\winreg.h(145) : error C2065: 'HKEY' : undeclared
identifier
c:\winddk\2600.1106\inc\wxp\winreg.h(146) : error C2146: syntax error :
missing ')' before identifier 'hKey'
c:\winddk\2600.1106\inc\wxp\winreg.h(146) : warning C4229: anachronism used
: modifiers on data are ignored
c:\winddk\2600.1106\inc\wxp\winreg.h(146) : error C2491: 'RegCloseKey' :
definition of dllimport data not allowed
c:\winddk\2600.1106\inc\wxp\winreg.h(146) : error C2059: syntax error : ')'
c:\winddk\2600.1106\inc\wxp\winreg.h(152) : error C2146: syntax error :
missing ')' before identifier 'hKey'
c:\winddk\2600.1106\inc\wxp\winreg.h(152) : warning C4229: anachronism used
: modifiers on data are ignored
c:\winddk\2600.1106\inc\wxp\winreg.h(152) : error C2491:
'RegOverridePredefKey' : definition of dllimport data not allowed
c:\winddk\2600.1106\inc\wxp\winreg.h(154) : error C2059: syntax error : ')'
c:\winddk\2600.1106\inc\wxp\winreg.h(163) : error C2061: syntax error :
identifier 'PHKEY'
c:\winddk\2600.1106\inc\wxp\winreg.h(171) : error C2061: syntax error :
identifier 'PHKEY'
c:\winddk\2600.1106\inc\wxp\winreg.h(185) : error C2061: syntax error :
identifier 'HKEY'
......
There are a total of 105 errors and 30 warnings.
Your help and advices are greatly appreciated.
Best regards,
George
.
- Prev by Date: Visual Studio 2005 Beta 2
- Next by Date: Re: Visual Studio 2005 Beta 2
- Previous by thread: Visual Studio 2005 Beta 2
- Next by thread: Installing VS.NET to Multiple Operating System
- Index(es):
Relevant Pages
|