PDA

View Full Version : Borland Builder 6 and Direct3D, problem setting up



nlraley
13-10-2010, 03:29 PM
I have downloaded the Delphi/Borland compatible files that I found on clootie's site. I have the latest Microsoft SDK installed.

I am trying to use the D3DXCreateTextureFromFile method.

I have the following libs included in my project:
d3d9.lib
d3dx9.lib
d3dx9d.lib
ddraw.lib
dxerr9.lib

And their respective dll's are found in the same directory.

In my .h I have the following defined:
#pragma link "DX9\d3d9.lib"
#pragma link "DX9\d3dx9.lib"
#pragma link "DX9\d3dx9d.lib"

However, I am getting the following error when trying to compile:
Call to undefined function 'D3DXCreateTextureFromFile

What step am I missing in trying to get this up and running?

chronozphere
14-10-2010, 11:03 AM
Welcome niraley

Sorry, I can't actually help you with that.

The thing is that you're talking about Borland C++ Builder. This is a pascal forum, so not many will be familiar with it.

Nevertheless, good luck! :)

Stoney
14-10-2010, 12:46 PM
The problem seems to be that you added "DX9\" to your pragma link command but in your post you say that the .lib - files aren't in the DX9 subdirectory, but in the same path as the rest of the files.
Try using
#pragma link "d3d9.lib"
#pragma link "d3dx9.lib"
#pragma link "d3dx9d.lib"