Original Post
🔒 Locked
unicode and strings
Advertisement
wcstombs(mtrls.pTextureFilename,str,20);
D3DXCreateTextureFromFile( g_pd3dDevice, str, &tex); //compiles but is this it? i get an x File with no materials so i dont know if this is correct
this is in a loop so is this a problem
const size_t length = 1 + strlen(mtrls.pTextureFilename);
LPWSTR wcsText = new WCHAR[length];
mbstowcs(wcsText, mtrls.pTextureFilename, length);
[Edited by - jagguy2 on January 12, 2008 6:26:51 AM]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement