Skip to main content
GameDev.net gamedev.net
🔒 Locked

Using the D3DX library

Started by red_sodium Mar 26, 2004 at 8:32 PM 3 replies 900+ views
Original Post
red_sodium
red_sodium
Hi, I''m having trouble with using the D3DX library with Borland C++ Builder. I have the library files specific to it, but I''m missing something for D3DX9 as I can use D3D9, but when i include d3dx9.h i get several errors in d3dx9math.inl, including "undefined symbol ''UINT_PTR'' ". Does anyone know what I can do to get D3DX9 to work with BCB, or does anyone have the correct files for this to work? Thanks very much for any help, it''s much appreciated!
"Learn as though you would never be able to master it,
hold it as though you would be in fear of losing it" - Confucius
red_sodium
red_sodium
Thanks, I already have these files, I can use D3D9 okay but I still can''t use the D3DX9 library. I get errors in d3dx9math.inl.

Can anyone help with this?
"Learn as though you would never be able to master it,
hold it as though you would be in fear of losing it" - Confucius
red_sodium
red_sodium
I also took the DLLs Clootie''s site said I needed and put them in my Windows System folder, but do i need to link to them somehow or something?
"Learn as though you would never be able to master it,
hold it as though you would be in fear of losing it" - Confucius
red_sodium
red_sodium
It turns out the problem is that my BCB library is too outdated (version 3 of Borland C++ Builder) and that I don''t have UINT_PTR defined. When I do define it (someone gave me the definition part), I get 2 errors.

I''m not too sure about typedef syntax, can anyone spot any errors without needing a context?

typedef _W64 int INT_PTR, *PINT_PTR;
typedef _W64 unsigned int UINT_PTR, *PUINT_PTR;

And the 2 errors are ", expected" for first line of code, and
"Too many types for declaration" on the second line.

I am very grateful for any help. As you can imagine, its a nightmare configuring DirectX9 for use with Borland C++ Builder!
"Learn as though you would never be able to master it,
hold it as though you would be in fear of losing it" - Confucius

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.