I want to use plain old std::string with regular single byte ascii chars.
Originally Posted by Codeplug
should this work?
The above compiled fine and seemed to work. I put breakpoints where it loads the mesh and file and all the strings were correct and the correct data was loaded into the mesh, texture, and materials.
D3DXLoadMeshFromXA(file.c_str());//other args not shown
//do some string manipulation to get the full path texture file name
LPSTR pTextureFilename="mymodel.bmp";//this is actually gotten from a directx function
D3DXCreateTextureFromFileA(strTexture.c_str());//other args not shown
However, I then get a completely new error. (which i'll make a new post for in a minute. Has to do with _BLOCK_TYPE_IS_VALID ASSERTE failure because a destructor is being called on an uninitialized object during array initialization.)