Click to See Complete Forum and Search --> : wchar_t doesn't accept slashes ?!


mankai
March 4th, 2005, 11:01 AM
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++?

Ajay Vijay
March 4th, 2005, 11:06 AM
Where you are displaying that value? I tried that code and place into watch window (myString,su) and its shows correct value!