i just couldn't imagine such a simple thing to be that complicated.
And you didn't do it as simple as:
std::wstring s2ws(const std::string& s)
{
return std::wstring(s.begin(), s.end());
}
#ifdef UNICODE
std::wstring stemp = s2ws(filename); // Temporary buffer is required
#else
std::Wstring stemp = s;
#endif
D3DX11CreateShaderResourceViewFromFile(device, stemp.c_str(), NULL, NULL, &texture, NULL);
like suggested because of... ?
Not Telling