Jump to content
  • Advertisement
Sign in to follow this  
Calin

DirectX version problem

This topic is 4850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Currently I have DirectX 9 installed on my computer. I am trying to compile a tutorial that uses DX 8. Initially when I tryed to compile the code I recived this error:
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(1) : fatal error C1083: Cannot open include file: 'd3dx8.h': No such file or directory




I renamed 'd3dx8.h' to 'd3dx9.h' but I only recived more errors:
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(3) : error C2146: syntax error : missing ';' before identifier 'g_pD3D'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(4) : error C2146: syntax error : missing ';' before identifier 'g_pD3DDevice'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(5) : error C2146: syntax error : missing ';' before identifier 'g_pVertexBuffer'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(22) : error C3861: 'Direct3DCreate8': identifier not found
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(30) : error C2227: left of '->GetAdapterDisplayMode' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(43) : error C2065: 'D3DSWAPEFFECT_COPY_VSYNC' : undeclared identifier
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(48) : error C2227: left of '->CreateDevice' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(54) : error C2227: left of '->SetRenderState' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(57) : error C2227: left of '->SetRenderState' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(106) : error C2227: left of '->CreateVertexBuffer' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(113) : error C2227: left of '->Lock' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(122) : error C2227: left of '->Unlock' must point to class/struct/union/generic type
        type is 'int'
c:\documents and settings\calin\my documents\lrnres\directx\basic features\andypike\dx project 3\main.cpp(143) : error C2227: left of '->SetTransform' must point to class/struct/union/generic type
        type is 'int'




I would appreciate any help with this problem. [Edited by - Calin on August 11, 2005 7:23:25 AM]

Share this post


Link to post
Share on other sites
Advertisement
That's a problem. You cannot use the DirectX 9 SDK to develop DirectX 8 applications. You either need to find a tutorial that will teach your the things in DirectX 9, or find an old DirectX 8 SDK.

They have a tutorial on DirectX 9 at www.32bits.co.uk

Toolmaker

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!