Directx - C++ - Error.

This is a discussion on Directx - C++ - Error. within the C++ Programming forums, part of the General Programming Boards category; Hey, i just downloaded Directx sdk and im ready to work on it. But, im not sure either i got ...

  1. #1
    kevinawad
    Guest

    Directx - C++ - Error.

    Hey, i just downloaded Directx sdk and im ready to work on it.

    But, im not sure either i got a compiler error because of the include path, or it's actually an error with the file.

    Code:
     
    winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int.
    That's the error, hmmm? not sure what the problem is. I'm using Visual studio professional edition 2008 by the way. Thank you and i hope i get an answer.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,681
    So what is on line 7818 +/- 5 lines in Winnt.h?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    kevinawad
    Guest
    Code:
     
    1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
    1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer'
    1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    This is the full error code. i didn't even started to program. while i include windows.h..this happens.


    It say before PVOID64

    Code:
     
    #define DECLSPEC_DEPRECATED_DDK
    #define PRAGMA_DEPRECATED_DDK 0
    #endif
    //
    // Void
    //
    typedef void *PVOID;
    typedef void * POINTER_64 PVOID64;
    This actually started when i got the directx sdk.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,515
    Sounds like you are in MSVC 6. We used to have a sticky about using MSVC 6 with new DX SDKs but since the topic is so old I believe we removed it.

    You are missing a header that defines LPVOID64 but I forget what the header name is. You can search the board for a similar error b/c we discussed it in great length some time ago.

    EDIT:

    Actuall we didn't remove the sticky. It's at the top of the game programming forum.
    Please STICKY this- vital to MSVC 6 dev - BASETSD.h

    You are missing BASESTD.h which no longer comes with any of the SDK's. Just copy it from the post and include it in your project and you should be fine.
    Arrogance breeds bad code

  5. #5
    kevinawad
    Guest
    I'm using visual studio 2008.

    Everytime i include windows.h..it gives me int assumed. Note: C++ does not support default-int error.
    Last edited by kevinawad; 08-13-2008 at 07:38 PM.

  6. #6
    kevinawad
    Guest
    Nevermind, found out why. i downloaded the old version of directxSdk...wow what a jerk :O. Thanks anyway for the people who tryed to help me.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 03:09 AM
  2. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 06:17 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 03:49 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21