Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Wind2k DDK

Wind2k DDK

Scheduled Pinned Locked Moved System Admin
c++helpcsharpvisual-studioarchitecture
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anshumanshinde
    wrote on last edited by
    #1

    hi! i want to develop file filters for win2k. i have installed win2k ddk. i am using visual c++6.0 Enterprise Edition i tried to run samples provided with the ddk. /src/storage/filters/diskperf when i compiled it i got 102 erros,just pasting a couple: c:\ntddk\inc\ddk\ntddk.h(370) : error C2061: syntax error : identifier 'PULONG_PTR' c:\ntddk\inc\ddk\ntddk.h(371) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(824) : error C2061: syntax error : identifier 'KSPIN_LOCK' c:\ntddk\inc\ddk\ntddk.h(824) : error C2059: syntax error : ';' c:\ntddk\inc\ddk\ntddk.h(825) : error C2143: syntax error : missing '{' before '*' c:\ntddk\inc\ddk\ntddk.h(3654) : error C2061: syntax error : identifier 'ULONG_PTR' so i traced back the definitions of 'PULONG_PTR', 'ULONG_PTR' etc.. those are defined in basetsd.h basetsd.h is included in ntdef.h which is inturn included in ntddk.h, for which we are getting the errors. there are 2 versions of basetsd.h on my system one provided by ms-visual studio and the other is provided by win2k ddk. the basetsd.h provided by win2k ddk has the definitions of the 'PULONG_PTR','ULONG_PTR' etc.. while compiling the compiler is taking basetsd.h provided by ms-visual studio and not the one provided by win2kddk. so i changed the path in #include for basetsd.h in ntdef.h so that while compling ddk's verion of basetsd.h is used. i complied and it worked 102 errors were cut down to 3 following ones: c:\ntddk\inc\ddk\ntddk.h(9106) : error C2061: syntax error : identifier 'PCONTEXT' c:\ntddk\inc\ddk\ntddk.h(9107) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(10347) : fatal error C1189: #error : "Target architecture not defined" now i dont know whats the problem. the ddk is not compatilbe with vc complier or i cannot guess. so please enlighten me with the above said problem regards anshu

    A 1 Reply Last reply
    0
    • A anshumanshinde

      hi! i want to develop file filters for win2k. i have installed win2k ddk. i am using visual c++6.0 Enterprise Edition i tried to run samples provided with the ddk. /src/storage/filters/diskperf when i compiled it i got 102 erros,just pasting a couple: c:\ntddk\inc\ddk\ntddk.h(370) : error C2061: syntax error : identifier 'PULONG_PTR' c:\ntddk\inc\ddk\ntddk.h(371) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(824) : error C2061: syntax error : identifier 'KSPIN_LOCK' c:\ntddk\inc\ddk\ntddk.h(824) : error C2059: syntax error : ';' c:\ntddk\inc\ddk\ntddk.h(825) : error C2143: syntax error : missing '{' before '*' c:\ntddk\inc\ddk\ntddk.h(3654) : error C2061: syntax error : identifier 'ULONG_PTR' so i traced back the definitions of 'PULONG_PTR', 'ULONG_PTR' etc.. those are defined in basetsd.h basetsd.h is included in ntdef.h which is inturn included in ntddk.h, for which we are getting the errors. there are 2 versions of basetsd.h on my system one provided by ms-visual studio and the other is provided by win2k ddk. the basetsd.h provided by win2k ddk has the definitions of the 'PULONG_PTR','ULONG_PTR' etc.. while compiling the compiler is taking basetsd.h provided by ms-visual studio and not the one provided by win2kddk. so i changed the path in #include for basetsd.h in ntdef.h so that while compling ddk's verion of basetsd.h is used. i complied and it worked 102 errors were cut down to 3 following ones: c:\ntddk\inc\ddk\ntddk.h(9106) : error C2061: syntax error : identifier 'PCONTEXT' c:\ntddk\inc\ddk\ntddk.h(9107) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(10347) : fatal error C1189: #error : "Target architecture not defined" now i dont know whats the problem. the ddk is not compatilbe with vc complier or i cannot guess. so please enlighten me with the above said problem regards anshu

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      DON'T USE THE IDE TO COMPILE!!! use the build-in build environment from the ddk... start menu/ddk/build environment/... create the makefile and sources(or better copy them from an example driver source) and use the "build -cZ" command Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups