Sign in to follow this  

"D3DXCreateTextureFromFileExA is not a member of IDirect3DDevice8"

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

I'm doing SAMS Game Programming with DirectX in 21 Days and I'm currently learning about textures and transparency in Direct 3D 8. The example program calls D3DXCreateTextureFromFileEx which in turn becomes D3DXCreateTextureFromFileExA if Unicode is disabled (and it is). On compile time I get error C2039: 'D3DXCreateTextureFromFileExA' : is not a member of 'IDirect3DDevice8' Where did this function go? MY DXSDK is 9.0; I checked the documentation on Converting to DirectX 9.0, but it said nothing about it.

Share this post


Link to post
Share on other sites

D3DXCreateTextureFromFileEx is a standalone function, and NOT part of a Direct3D Device interface. That's what the compiler is trying to tell you with that error message.


Somewhere on the line with the error you have something like:

pD3Ddevice->D3DXCreateTextureFromFileEx( blah );


It should just be:

D3DXCreateTextureFromFileEx( blah );

Share this post


Link to post
Share on other sites

This topic is 4813 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this