Link to home
Start Free TrialLog in
Avatar of jamesw1024
jamesw1024

asked on

Transparent Texture from Resource File DirectX8

Hi,  I'm using createtexturefromfileex in VB6 to create textures from bitmaps in Driectx 8. However I want to combine all of my images into a single resource file.  When I run createtexturefromresourxeex to load it in I get error code D3DXERR_INVALIDDATA.  The parmaters are identical as to the create from file apart from passing App.hInstance and the resource number e.g. "101" for string.

Any help would be much appreciated as I'm stumped.
ASKER CERTIFIED SOLUTION
Avatar of fl0yd
fl0yd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jamesw1024
jamesw1024

ASKER

Thanks, I just happened to stumble across the solution.  When loading textures from a resource file, you are expected to pass app.hinstance.  This only works when the App is compiled.

thanks for your help.