CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    2

    Question 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++?

  2. #2
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    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!
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured