Advertisement Jump to content
Sign in to follow this  
eGamer

DX9 initialization in cbuilder6

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

does any one know how to setup cbuilder for directx9 i linked the libraries and header but unfortunately thousands of errors where displayed...?

Share this post


Link to post
Share on other sites
Advertisement
Did you use the libs that come with DirectX SDK? They are not compatible with Borland C++ Builder. Download compatible headers & libs here.

Share this post


Link to post
Share on other sites
it didn't recognize the sqrtf function call in d3dmath.inl ?
where to put dll files are they the reason ?

Share this post


Link to post
Share on other sites
Hi there eGamer,

[The Question]
it didn't recognize the sqrtf function call in d3dmath.inl ?
[The Answer]
Add the following line at the top of your main class.
#define sqrtf (float)sqrt

Share this post


Link to post
Share on other sites
what you told me has completely solved the problem and now cbuilder works
perfect with directX9 , cbuilder as a compiler an a tool is far powerful and flexible than vc6 but i want to ask something : why the previous code ran well in vc6 without adding the #define(s) you told me about where are they located...

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!