Advertisement

DirectX with Embarcadero C++ Builder

Started by April 08, 2018 06:00 AM
4 comments, last by _WeirdCat_ 6 years, 5 months ago

I used DirectX in projects on Borland C++ Builder 6.0.
Microsoft .libs don't work with Builder so I tooe special .lib files from here:  http://www.clootie.ru/cbuilder/index.html#DX_CBuilder_SDKs

Now I've moved to C++ Builder 10 Berlin and have to find a way to attach DirectX to my project again.
I've searched the Web but found nothing on how to get access to DirectX in Embarcadero Builders, only old information on Borland Builder and old .libs.
DirectX SDK .libs still can't be used with new Builder 10 because of incompatible format.

My question is: did anyone use DirectX with Embarcadero Builder and how did you solve .libs problem?
Can anyone give me a guide or example on how to make DirectX accessible in your Builder 10 project?
Why there is no information on this anywhere?

New RTS in development: Land of Sand

I think you have a coff2omf.exe and implib.exe in your C++ Builder folder. (maybe in the bin folder, I don't know the current C++ builder versions)

You can convert the original coff libs to omf format with coff2omf.exe, or you can generate your own omf libs from the directx dlls with implib.exe.

Advertisement
On 4/8/2018 at 9:00 AM, Ciaphas said:

Can anyone give me a guide or example on how to make DirectX accessible in your Builder 10 project?

Better way is to use FireMonkey project instead of VCL project. It have a support of both DX and OpenGL thru the wrapper that incapsulates initialisation and other details.

#define if(a) if((a) && rand()%100)

On 4/8/2018 at 9:00 AM, Ciaphas said:

Why there is no information on this anywhere?

Since FireMonkey library added to C++ builder it is 2 options exists : 1 you need other parts of framework and abilities of FireMonkey is enought (it have wery helpfull tools for most simple 3D solutions and also works for Android,  OS X  and iOS). 2. You need a naked DirectX to create something complete different from scratch and automaticaly can not use any components other than main form.  In this case shift to VC++ better choice becouse it better fit needs of development from scratch and not  depended from delphi code.

#define if(a) if((a) && rand()%100)

First of all you have somewhere directx headers put in main bds folder, second i cant remember if they were pas or hpp or h, cant actually tell if you needed to attach any libs but if you dont own them then, you alao can try to convert from visual studio lib into bpl (or was it radstudio compilant lib file)

Its has been a long time ive used dx on this.

If everything above fails then you maybe need dx sdk or whatevernit is called now, headers should compile (not totally true but....)

This topic is closed to new replies.

Advertisement