Sign in to follow this  

Direct3D 8 and 9 Header Problems

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

Hello there! Im trying to write renderers in both direct3d 8 and 9 in one dll. I have to include the main classes of each renderer in order create whicever renderer I request. Each of these classes #include d3d8.h and d3d9.h respectively. Thing is it compiles fine if I just include one of the main classes and its Direct3D header ( i.e either d3d8.h or d3d9.h). If I #include both it messaes up. I know why it messes up, all the redefinitions and so on. What I would like to know if if anyone can help me find a workaround for this? Thanks

Share this post


Link to post
Share on other sites
I agree with DrunkenHyena... but I'm pretty sure that d3d9.h includes the interface definitions for D3D8 as well. Try using d3d9.h exclusively.

Share this post


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