Hello guys,
Lets say I have a WCHAR variable which contains a location of 3D Model:
WCHAR g_Model[MAX_PATH] = L"somemodel.x";
Now, In application it happens that I want to change the model from somemodel.x to someothermodel.x
I use the case, where I try to change g_Model variable to handle "someothermodel.x", but I get error:
error C2440: '=' : cannot convert from 'const wchar_t [14]' to 'WCHAR'
So, I made new WCHAR called g_Model2 which contains someothermodel.x, and I tried:
g_Model = g_Model2
Compiles well, but application crushes (yes, I have tried setting that device does re-set after this change).
Debugger shows tons of stupid errors.
BTW: I have tried changing WCHAR to something else, but didnt work out.