DX9 initialization in cbuilder6

Started by
3 comments, last by eGamer 18 years, 8 months ago
does any one know how to setup cbuilder for directx9 i linked the libraries and header but unfortunately thousands of errors where displayed...?
Advertisement
Did you use the libs that come with DirectX SDK? They are not compatible with Borland C++ Builder. Download compatible headers & libs here.
it didn't recognize the sqrtf function call in d3dmath.inl ?
where to put dll files are they the reason ?
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
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...

This topic is closed to new replies.

Advertisement