Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    char text1[] = ... is what you are looking for. Commented Aug 28, 2013 at 18:06
  • Well, wchar_t text1[] (or std::wstring). Commented Aug 28, 2013 at 18:08
  • In C++ you would use std::string. Commented Aug 28, 2013 at 18:09
  • What almost no one here is mentioning is that the wide versions should be used when dealing with the winapi. Commented Aug 28, 2013 at 18:10
  • error C2039: 'string' : is not a member of 'std' Commented Aug 28, 2013 at 18:12