Hello I am migrating project from Visual studio 6.0 to Visual Studio 2005.
The problem i am facing is ths ... in VS 6.0 wchar_t
was simply typecast of unsigned short
but in VS2005 wchar_t
is built in data type.
In project previous programmers have used wchar_t and unsigned short intechangibally.
But in Vs 2005 it showing errors like cannot convert from wchar_t
to unsigned short
and vise versa.
So my question is can we safely cast wchar_t
to unsigned short
and vise versa or we need use functions like mbstowcs and wcstombs ?