Archived

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

misterX

hmm... how to include DX ?

Recommended Posts

hi, i''m new to c++ (not to programming) and knows nothing about the compiler (actually VC++ 5.0). The problem is i don''t know what actions i should do to make the samples from the DX SDK run. I included the corresponding ''lib'' and ''include'' paths as standart paths in VC options... but that seems not enough, the examples don''t compile, it don''t recognize any type of DX ! What have i to do? thanks.

Share this post


Link to post
Share on other sites
Um... when you included the search path like you said, were they put at the top of the list of possible paths? That''s all I can think of. But I''d reccomend buying a book about DirectX first, like "Tricks of the Windows Game Programming Gurus" second edition.

Share this post


Link to post
Share on other sites
You also have to include the individual lib files for your projects under projects settings, link.

You really ought to get a good book to help you out with DirectX, like Tricks of the Windows Game Programming Gurus, as mentioned by Weston, or get Zen of Direct3D... it''ll help you out alot.

Share this post


Link to post
Share on other sites
quote:

...include the individual lib files for your projects under projects settings, link...



=> was done. no changes, the problem remains the same: it still won''t compile. also, i''ve an old book about DX (5) but they don''t speak about the VC environement.

quote:

...put at the top of the list...



=> despite of not beleiving it would change anything, i''ve changed the order of the paths to put them on top. Result: it works!!! I''m very suprised :-O, this was really unexpected! I thought all this pathes were included and that their order didn''t change anything, but as i see, it is not!
Thanks.

Share this post


Link to post
Share on other sites
If anyone is wondering, the reason the paths need to be on the top is that VC coems with the headers and libs for an earlier version of DirectX (5.0?). They will be included instead of the DX8 ones if you don''t have the DX8 paths on top.

Share this post


Link to post
Share on other sites