• Advertisement

Archived

This topic is now archived and is closed to further replies.

Visual c++ 6 and DX

This topic is 5490 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

I have visual c++ 6.0 and Directx SDK 8.1, i have set up the include and lib directories,included the d3d8.h and added the d3d8.lib in the object and libraries modules but my project doesn''t recognize the direct3d objects and devices, what can i do?

Share this post


Link to post
Share on other sites
Advertisement
did you put d3d8.lib in you project settings, lib tab?



To be considered a genius you just have to say what everybody knows in a way very few understand

Share this post


Link to post
Share on other sites
Check your lib. path;

with CTRL+F7 see the lib section and verify.

If no results please give more details ...

Best regards

JTS

Share this post


Link to post
Share on other sites
If you are referring to the missing auto-completing in visual studio, you have to add the included header files to your project as well.
Open the header file, right click on code and click on "add to project" (may be spelled otherwise, thats a translation from german)

Share this post


Link to post
Share on other sites
You need to have the links to include and lib for dx8 first not after the default search paths for include and lib in vs6.

like so:

mypath/dx8include
vs6path/include

mypath/dx8lib
vs6path/lib

etc...

otherwise it will find dx5 first and that is not what you want.

____________________________________________________________
Try RealityRift at www.planetrift.com
Feel free to comment, object, laugh at or agree to this. I won''t engage in flaming because of what I have said.
I could be wrong or right but the ideas are mine.

Share this post


Link to post
Share on other sites
Nothing guys I have installed directx 8.1 SDK at c:\DXSDK
and my setting are:
at directories:
C:\DXSDK\INCLUDE
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
D:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
D:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

at libraries:
C:\DXSDK\LIB
D:\Program Files\Microsoft Visual Studio\VC98\LIB
D:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB


at headers at source code
#include <windows.h>
#include <d3d8.h>

and finally i have put the d3d8.lib at object/libary modules but my programm doesn't recognize the directx objects.

[edited by - lone_ranger on February 10, 2003 4:06:03 AM]

Share this post


Link to post
Share on other sites
I had this problem before. Try reinstalling the dx8 sdk. Also, it should pop up a screen asking if you would like it added to vc6. From there you should be able to compile any of the sample code provided.
Trying to do your own stuff from scratch requires you include the right headers, and edit the properties of your workspace to include special objects. Get''s complicated if the code''s not right.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
what is the error your getting ?

Share this post


Link to post
Share on other sites

  • Advertisement