Jump to content
  • Advertisement
Sign in to follow this  
Iori Branford

"D3DXCreateTextureFromFileExA is not a member of IDirect3DDevice8"

This topic is 5001 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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!