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. General Programming
  3. C / C++ / MFC
  4. DirectX problems

DirectX problems

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiontutorialcsharpc++
4 Posts 2 Posters 1 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.
  • G Offline
    G Offline
    gr8coaster329
    wrote on last edited by
    #1

    i have been trying to learn how to do directx programming in c++ but have not found any source code from tutorials that will compile. i am using visual studio express edition. when i try to compile the code that came with the directx 9 sdk it gives me errors for the include file 'winnt.h' such as: winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer' winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int what is causing this and how can i fix it? the only include file that i have is d3d9.h. also if anyone can point me towards a good direct3d beginners tutorial it would be very helpful. thank you in advance for any help you can offer - Kyle

    S G 2 Replies Last reply
    0
    • G gr8coaster329

      i have been trying to learn how to do directx programming in c++ but have not found any source code from tutorials that will compile. i am using visual studio express edition. when i try to compile the code that came with the directx 9 sdk it gives me errors for the include file 'winnt.h' such as: winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer' winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int what is causing this and how can i fix it? the only include file that i have is d3d9.h. also if anyone can point me towards a good direct3d beginners tutorial it would be very helpful. thank you in advance for any help you can offer - Kyle

      S Offline
      S Offline
      suchuhui
      wrote on last edited by
      #2

      try to change the compiling version from the current into another , let see if it will work

      G 1 Reply Last reply
      0
      • S suchuhui

        try to change the compiling version from the current into another , let see if it will work

        G Offline
        G Offline
        gr8coaster329
        wrote on last edited by
        #3

        suchuhui wrote:

        try to change the compiling version from the current into another , let see if it will work

        how do i do this? - Kyle

        1 Reply Last reply
        0
        • G gr8coaster329

          i have been trying to learn how to do directx programming in c++ but have not found any source code from tutorials that will compile. i am using visual studio express edition. when i try to compile the code that came with the directx 9 sdk it gives me errors for the include file 'winnt.h' such as: winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer' winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int what is causing this and how can i fix it? the only include file that i have is d3d9.h. also if anyone can point me towards a good direct3d beginners tutorial it would be very helpful. thank you in advance for any help you can offer - Kyle

          G Offline
          G Offline
          gr8coaster329
          wrote on last edited by
          #4

          I fixed the errors using the steps on this[^] page. i skipped the 4th step. thank you for the ideas and input - Kyle

          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