Thread: Dxgitype Error

Results 1 to 7 of 7
  1. #1
    Arch Enemy's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    379
    My Mood
    Tired

    Dxgitype Error

    Code:
       1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57): error C2059: syntax error : '('
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57): error C2143: syntax error : missing ')' before '|'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57): error C2143: syntax error : missing ';' before '|'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57): error C2059: syntax error : ')'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57): error C2059: syntax error : ')'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57): error C2238: unexpected token(s) preceding ';'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2059: syntax error : '('
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2143: syntax error : missing ')' before '|'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2143: syntax error : missing ';' before '|'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2535: 'float DXGI_RGB::D3DCOLOR(void)' : member function already defined or declared
                     c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57) : see declaration of 'DXGI_RGB::D3DCOLOR'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2059: syntax error : ')'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2059: syntax error : ')'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(58): error C2238: unexpected token(s) preceding ';'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2059: syntax error : '('
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2143: syntax error : missing ')' before '|'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2143: syntax error : missing ';' before '|'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2535: 'float DXGI_RGB::D3DCOLOR(void)' : member function already defined or declared
                     c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(57) : see declaration of 'DXGI_RGB::D3DCOLOR'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2059: syntax error : ')'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2059: syntax error : ')'
         1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(59): error C2238: unexpected token(s) preceding ';'

    ok in EVERY DirectX source on C++ , i get dxgitype error , what should i do to fix it ?

  2. #2
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    880
    My Mood
    Twisted
    You have a type redefinition going on, try fiddling your headers.

    For example if you have this:

    Code:
    #include <d3d.h>
    #include <d3d9x.h>
    
    // try changing it to:
    
    #include <d3d9x.h>
    #include <d3d.h>
    If you've tried all combinations, try googeling to see if there's a bug that specific sdk version (june 2010). These problems have three likely causes:

    Someone has forgotten to protect his/her header against multiple inclusion (though this often produces linker errors)
    Someone has used the same #ifndef/#define definition in his header file
    A mistake has been made by them/you/anyone and as a result the file is now corrupt ( missing ';', ')' or '(' )

    Also if you're building for metro, you need a newer sdk, 2010 is not compatible.
    Last edited by .::SCHiM::.; 08-28-2012 at 03:43 PM.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




  3. The Following User Says Thank You to .::SCHiM::. For This Useful Post:

    Arch Enemy (08-30-2012)

  4. #3
    Arch Enemy's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    379
    My Mood
    Tired
    Quote Originally Posted by .::SCHiM::. View Post
    You have a type redefinition going on, try fiddling your headers.

    For example if you have this:

    Code:
    
    #include <d3d.h>
    #include <d3d9x.h>
    
    // try changing it to:
    
    #include <d3d9x.h>
    #include <d3d.h>
    If you've tried all combinations, try googeling to see if there's a bug that specific sdk version (june 2010). These problems have three likely causes:

    Someone has forgotten to protect his/her header against multiple inclusion (though this often produces linker errors)
    Someone has used the same #ifndef/#define definition in his header file
    A mistake has been made by them/anyone and as a result the file is now corrupt ( missing ';', ')' or '(' )

    Also if you're building for metro, you need a newer sdk, 2010 is not compatible.
    i tried all combinations but failed , i have June 2010 and i couldnt fine newer than june 2010

    can u tell me which 1 is the latest ?

  5. #4
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    make a new empty project and make a new cpp file. fill it with the following

    Code:
    #include <windows.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    
    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib, "d3dx9.lib")
    
    INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, INT nShow)
    {
        return 0;
    }
    and compile it
    if the error presents, the sdk is probably damaged and you will need to re install it.


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  6. The Following User Says Thank You to giniyat101 For This Useful Post:

    Arch Enemy (08-30-2012)

  7. #5
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Most likely trying to leech something and can't find the problem. meh
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  8. #6
    Arch Enemy's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    379
    My Mood
    Tired
    nvm , error fixed
    ty all for helps
    @Brinuz @Jorndel

    close the thread please

  9. #7
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Closed....
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

Similar Threads

  1. Hellbreath Int Error?
    By RebornAce in forum General
    Replies: 10
    Last Post: 03-06-2009, 09:04 PM
  2. Gunz Error Message
    By A7X Oblivian in forum Gunz General
    Replies: 2
    Last Post: 02-08-2006, 02:00 PM
  3. Connection error
    By DrKaOs in forum WarRock - International Hacks
    Replies: 6
    Last Post: 02-05-2006, 08:37 PM
  4. K Warrock error :(
    By i eat trees in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-26-2006, 08:40 PM