Results 1 to 26 of 26

Thread: Direct3D -- 93 errors!!!

  1. #1

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553

    Direct3D -- 93 errors!!!

    Hello,
    I have downloaded a source code for a Direct3D app and I tried to make an exe.
    That didn't work, I got 93 errors and 5 warnings.
    I have checked that the d3d8.lib and d3dx8.lib are included.
    I tested another app, but the same 93 errors and 5 warnings...
    What to do?
    ICQ: 128716725

  2. #2
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    That is a load of help... WHAT errors do you get?

    Z.

  3. #3
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Sounds like you do not have it pointing at the include dir for DX. Make sure you have that setup correctly
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  4. #4

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    I can use DirectDraw... it must be poiting to the DX lib dir.
    The errors is because the functions doesn't exist, Example:
    GetCooperativeLevel can't be found.
    But, I'm not at home rigth now, I can't show the errors.
    ICQ: 128716725

  5. #5

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Now I've downloaded another source code, it only gives me 3 errors:

    --------------------Configuration: dxtut2 - Win32 Debug--------------------
    Compiling...
    dxtut2.cpp
    Linking...
    dxtut2.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4
    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/dxtut2.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.

    dxtut2.exe - 3 error(s), 0 warning(s)
    ICQ: 128716725

  6. #6

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    When I compile my and another source code, I get these errors:
    --------------------Configuration: D3D - Win32 Debug--------------------
    Compiling...
    capplication.cpp
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(16) : error C2061: syntax error : identifier 'D3DFORMAT'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : error C2146: syntax error : missing ';' before identifier 'GetDevice'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : error C2501: 'LPDIRECT3DDEVICE8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : warning C4183: 'GetDevice': member function definition looks like a ctor, but name does not match enclosing class
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2146: syntax error : missing ';' before identifier 'm_pDirect3DObject'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2501: 'LPDIRECT3D8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2501: 'm_pDirect3DObject' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2146: syntax error : missing ';' before identifier 'm_pDirect3DDevice'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2501: 'LPDIRECT3DDEVICE8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2501: 'm_pDirect3DDevice' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2146: syntax error : missing ';' before identifier 'm_PresentParameters'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2501: 'D3DPRESENT_PARAMETERS' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2501: 'm_PresentParameters' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2146: syntax error : missing ';' before identifier 'm_ColorFormat'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2501: 'D3DFORMAT' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2501: 'm_ColorFormat' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(38) : error C2501: 'm_DepthStencilFormat' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2146: syntax error : missing ';' before identifier 'm_ProjectionMatrix'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2501: 'D3DXMATRIX' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2501: 'm_ProjectionMatrix' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(5) : error C2065: 'm_pDirect3DObject' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(6) : error C2065: 'm_pDirect3DDevice' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(10) : error C2065: 'm_ColorFormat' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(10) : error C2143: syntax error : missing ';' before ':'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(23) : error C2181: illegal else without matching if
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(36) : error C2065: 'KillDirect3D' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(77) : warning C4800: 'struct IDirect3D8 *' : forcing value to bool 'true' or 'false' (performance warning)
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(77) : error C2106: '=' : left operand must be l-value
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(77) : error C2143: syntax error : missing ';' before '=='
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(77) : error C2059: syntax error : ')'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(78) : error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(83) : warning C4003: not enough actual parameters for macro 'RtlZeroMemory'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(83) : error C2065: 'm_PresentParameters' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(83) : error C2059: syntax error : ')'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(83) : error C2059: syntax error : ')'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(84) : error C2228: left of '.Windowed' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(85) : error C2228: left of '.SwapEffect' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(86) : error C2228: left of '.EnableAutoStencil' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(87) : error C2228: left of '.AutoDepthStencilFormat' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(87) : error C2065: 'm_DepthStencilFormat' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(88) : error C2228: left of '.hDeviceWindow' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(89) : error C2228: left of '.BackBufferWidth' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(90) : error C2228: left of '.BackBufferHeight' must have class/struct/union type
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(91) : error C2228: left of '.BackBufferFormat' must have class/struct/union type
    ICQ: 128716725

  7. #7

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(93) : error C2227: left of '->CreateDevice' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(105) : error C2556: 'void __thiscall CApplication::InitScene(void)' : overloaded function differs only by return type from 'bool __thiscall CApplica
    tion::InitScene(void)'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(14) : see declaration of 'InitScene'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(105) : error C2371: 'InitScene' : redefinition; different basic types
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(14) : see declaration of 'InitScene'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(106) : error C2065: 'm_ProjectionMatrix' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(107) : error C2227: left of '->SetTransform' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(107) : error C2065: 'D3DTS_PROJECTIONS' : undeclared identifier
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(112) : error C2511: 'ChangeMode' : overloaded member function 'bool (unsigned long,unsigned long,enum _D3DFORMAT,enum _D3DFORMAT)' not found in 'CAp
    plication'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(7) : see declaration of 'CApplication'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(136) : error C2227: left of '->TestCooperativeLevel' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(141) : error C2227: left of '->Reset' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(146) : error C2264: 'InitScene' : error in function definition or declaration; function not called
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(156) : error C2227: left of '->Clear' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(167) : error C2227: left of '->Present' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(180) : error C2227: left of '->Release' must point to class/struct/union
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.cpp(186) : error C2227: left of '->Release' must point to class/struct/union
    main.cpp
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(16) : error C2061: syntax error : identifier 'D3DFORMAT'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : error C2146: syntax error : missing ';' before identifier 'GetDevice'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : error C2501: 'LPDIRECT3DDEVICE8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : warning C4183: 'GetDevice': member function definition looks like a ctor, but name does not match enclosing class
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2146: syntax error : missing ';' before identifier 'm_pDirect3DObject'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2501: 'LPDIRECT3D8' : missing storage-class or type specifiers
    ICQ: 128716725

  8. #8

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2501: 'm_pDirect3DObject' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2146: syntax error : missing ';' before identifier 'm_pDirect3DDevice'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) :
    error C2501: 'LPDIRECT3DDEVICE8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2501: 'm_pDirect3DDevice' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2146: syntax error : missing ';' before identifier 'm_PresentParameters'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2501: 'D3DPRESENT_PARAMETERS' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2501: 'm_PresentParameters' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2146: syntax error : missing ';' before identifier 'm_ColorFormat'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2501: 'D3DFORMAT' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2501: 'm_ColorFormat' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(38) : error C2501: 'm_DepthStencilFormat' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2146: syntax error : missing ';' before identifier 'm_ProjectionMatrix'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2501: 'D3DXMATRIX' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2501: 'm_ProjectionMatrix' : missing storage-class or type specifiers
    winproc.cpp
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(16) : error C2061: syntax error : identifier 'D3DFORMAT'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : error C2146: syntax error : missing ';' before identifier 'GetDevice'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : error C2501: 'LPDIRECT3DDEVICE8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(24) : warning C4183: 'GetDevice': member function definition looks like a ctor, but name does not match enclosing class
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2146: syntax error : missing ';' before identifier 'm_pDirect3DObject'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2501: 'LPDIRECT3D8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(30) : error C2501: 'm_pDirect3DObject' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2146: syntax error : missing ';' before identifier 'm_pDirect3DDevice'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2501: 'LPDIRECT3DDEVICE8' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(31) : error C2501: 'm_pDirect3DDevice' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2146: syntax error : missing ';' before identifier 'm_PresentParameters'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2501: 'D3DPRESENT_PARAMETERS' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(32) : error C2501: 'm_PresentParameters' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2146: syntax error : missing ';' before identifier 'm_ColorFormat'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2501: 'D3DFORMAT' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(37) : error C2501: 'm_ColorFormat' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(38) : error C2501: 'm_DepthStencilFormat' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2146: syntax error : missing ';' before identifier 'm_ProjectionMatrix'
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2501: 'D3DXMATRIX' : missing storage-class or type specifiers
    c:\documents and settings\peter backman\mina dokument\programmering\c++\d3d\ett\d3d\capplication.h(40) : error C2501: 'm_ProjectionMatrix' : missing storage-class or type specifiers
    Error executing cl.exe.

    D3D.exe - 93 error(s), 5 warning(s)
    ICQ: 128716725

  9. #9

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    That would be all. PUH!
    ICQ: 128716725

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Did you download the DirectX 8 SDK?

    For the first one, you need to change the linker options to use WinMain as the entry point.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Make sure you have these headers included:
    #include <windows.h>
    #include <math.h> (you'll need it)
    #include <D3DX8.h>
    #include <DXErr8.h>


    Also make sure you have the include paths set correctly: the include path for the DXSDK must be the FIRST in the list.

    The same goes for the library path.

    In the other project you need to set the subsystem in the project settings to windows.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  12. #12

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    I haven't included the DXErr8.h, but i have "C:\mssdk\include\" (DirectX include dir) first in the list.
    ICQ: 128716725

  13. #13

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    And I have the DirectX8 SDK.
    ICQ: 128716725

  14. #14
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    A comment:

    MSVC++ doesn't panic very easily. Most compilers give up (panic) after a certain number of errors, or errors of a certain magnitude.
    MSVC++ doesn't do that very often - it just churns out error after error. I haven't figured out what finally makes it give up. BTW, many of the subsequent reported errors may be meaningless because the compiler is really "confused".

    So, for example, if you have an undeclared variable (really one error) it gets marked as several errors each place in the code it occurs. One misplaced { can generate literally dozens of errors.
    I like the HPUX C/C++ compiler - it gives up after about about 3-4 lines with fatal errors.

    What you do is fix 2-3 things the compiler hates, then recompile. This often will take an error count of 93 down to about 20. Don't bother to consider messages way down the message chain.

  15. #15

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Yeah, I know, the compiler seems to be in a bad mood all the time...
    But, I tested to compile a Direct3D sample, and it worked great...
    And I'm doing it in another way, but I can only draw a triangle, note: just one. More tutorials, where to find?
    ICQ: 128716725

  16. #16
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Have you already done all tutorials that come with D3D? They are quite good. To build on that I recommend a book, like "Special Effect Game Programming with DirectX". I'm currently reading it and it's blowing my head away, but it's really good. It will give you everything on the technical side you need.

    Add to the mix some general game programming book for the theory (physics, math, AI, I recommend "Tricks of the Windows Game Programming Gurus" by André LaMothe) and all three books of the "Game Programming Gems" series for advanced tips (you won't need that for simple games, but once the game gets larger you'll appreciate the tips there).
    You might also want to get "Effective C++", it is recommended everywhere, I need to get it myself.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  17. #17
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Nearly ALL of the errors up there are due to a header file not being included.

    Z.

  18. #18

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Yeah, I could imagine that...
    Any good books then?
    I want to learn game programing in D3D...
    ICQ: 128716725

  19. #19
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I just posted.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  20. #20

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Yes, but Special Effects sounds to advanced, I want a book for beginners... I've heard about some "The Zen of Direct3D" book or something.
    ICQ: 128716725

  21. #21

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    These books, are they good for beginners?
    Special Effects Game Programming with DirectX
    The Zen of Direct3D Game Programming
    They are expensive, so I want to know if they are good before I spend so much money!
    ICQ: 128716725

  22. #22
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The "Special Effects" starts at the very basics, so even a beginner can use it, but it advances rapidly, so beware. It also teaches you a bit about how you create 2D games using DirectGraphics and take advantage of the possibilities 3D hardware offers you.

    I read bad things about "Zen" at Amazon.

    I read "Beginning Direct3D Game Programming" and it sucks.

    The "SE" is very good and up to date. But it doesn't cover general game programming topics such as physics, AI, collision detection etc. I recommend LaMothe's book for that. It also covers the other DirectX components (Input, Sound, Music, Draw) in great detail.

    The "Gems" books are advanced. They contain many many optimization tricks and programming techniques.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  23. #23

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Thankyou for your reply! I should then buy SE.
    ICQ: 128716725

  24. #24
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by CornedBee
    The "Special Effects" starts at the very basics, so even a beginner can use it, but it advances rapidly, so beware. It also teaches you a bit about how you create 2D games using DirectGraphics and take advantage of the possibilities 3D hardware offers you.

    I read bad things about "Zen" at Amazon.

    I read "Beginning Direct3D Game Programming" and it sucks.

    The "SE" is very good and up to date. But it doesn't cover general game programming topics such as physics, AI, collision detection etc. I recommend LaMothe's book for that. It also covers the other DirectX components (Input, Sound, Music, Draw) in great detail.

    The "Gems" books are advanced. They contain many many optimization tricks and programming techniques.
    The Gems books are exactly that, gems. Ive got all three, and they certainly do give you great ideas =).

    Z.

  25. #25

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Which are the "Gems"??
    ICQ: 128716725

  26. #26
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Game Programming Gems 1-3, Charles River Media
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width