D3DXCreateTextureFromResource
Ok, this function ticks me off. The texturefromfile version works for me but i want to do it with resources so i don't have to carry around photos. So I have confirmed that the resource is correct by using FindResource, and it just doesn't load the picture. It's driving me nuts, any help? Thanks.
EDIT: After further research i have found out that it's returning blabla_INVALID_DATA or something like that. So why's the data invalid? It's a legit bmp exported with photoshop.
@
Shunnai
@
topblast
@
Qmo
@
Hell_Demon
@
why06make sure the hSrcModule is correct(null if your .exe has the image or a module handle if a module has it)