C++ String: What types of strings are there?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: C++ String: What types of strings are there?

Hybrid View

  1. #1
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443

    C++ String: What types of strings are there?

    Q: What types of strings are there?

    A:

    • 'char*' -> this is also called a C-style string, or an ANSI string.

    • 'wchar_t*' -> this is wide character string, i.e. an 'unsigned short*'

    • 'CString' -> this is a string wrapper class, which is part of the Microsoft Foundation Classes (MFC).

    • 'std::string' -> this is a Standard C++ Class wrapping a char string. It is part of the Standard Template Library, or STL.

    • 'std::wstring' -> this is a Standard C++ Class wrapping a wchar_t string. It is part of the Standard Template Library, or STL.

    • 'BSTR' -> this known as basic string or binary string, and is a pointer to a wide character string used by Automation data manipulation functions.



    Last edited by Andreas Masur; July 24th, 2005 at 05:55 AM.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center