Problem in Migrating VC++ Development from Windows 2K to XP



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




.



Relevant Pages

  • Critical problem in 2.6.2 and up
    ... Warning: '/dev' directory structure is incomplete; device is missing. ...
    (Linux-Kernel)
  • Re: dcdiag er
    ... Warning: attribute rIdSetReferences missing from ... The default SPN registration for 'HOST/UKSCRWADS01' is missing ... The File Replication Service Event log test ...
    (microsoft.public.win2000.active_directory)
  • Re: dcdiag er
    ... FSMO roles and left for 5 mins, then waited for replication to occur between ... Warning: attribute rIdSetReferences missing from ... The default SPN registration for 'HOST/UKSCRWADS01' is ...
    (microsoft.public.win2000.active_directory)
  • buildworld fails as non-root user
    ... *** Error code 1 ... ./bsnmp missing ... ./bsnmp: warning: file mode not set ...
    (freebsd-current)
  • Re: [PATCH] Replace zone padding with a definition in cache.h
    ... That's going to spit a warning with older gcc's. ... struct/union that defines no instances". ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)