wchar_t doesn't accept slashes ?!
I'm confused about constructing a wchar_t containing slashes...
I tried the following:
const wchar_t* myString = L"/test1/test2";
...but what I get is myString containing only "test2"!
I tried everything like '\\ // \ /' but myString always only contains "test2"
Could it be a problem of preprocessor definition _MBCS in VC++?
Re: wchar_t doesn't accept slashes ?!
Where you are displaying that value? I tried that code and place into watch window (myString,su) and its shows correct value!