About 1,450,000 results
Open links in new tab
  1. c++ - What is `CString`? - Stack Overflow

    Jan 23, 2013 · CString is neither a C nor a C++ type. It appears to be a Microsoft invention that is essentially an alternative to std::string: CString objects can grow as a result of concatenation …

  2. c++ - Difference between <cstring> and <string> - Stack Overflow

    Oct 11, 2012 · 60 The cstring header provides functions for dealing with C-style strings — null-terminated arrays of characters. This includes functions like strlen and strcpy. It's the C++ version of …

  3. How do you convert CString and std::string std::wstring to each other?

    CString is a template specialization of CStringT. Depending on the BaseType describing the character type, there are two concrete specializations: CStringA (using char) and CStringW (using wchar_t).

  4. Converting String to Cstring in C++ - Stack Overflow

    Aug 6, 2012 · I have a string to convert, string = "apple" and want to put that into a C string of this style, char *c, that holds {a, p, p, l, e, '\\0'}. Which predefined method should I be using?

  5. Difference between string.h and cstring? - Stack Overflow

    Dec 5, 2011 · What is the difference between string.h and cstring? Which one should be used for C and which one for C++ (if at all)?

  6. c++ - Using CString object in CString::Format - Stack Overflow

    Jan 14, 2018 · From the documentation of the CStringT class template: You can freely substitute CStringT objects for PCXSTR function arguments. Whenever a function parameter expects a …

  7. c++ - MFC: std::string vs CString? - Stack Overflow

    May 25, 2011 · Using C++ with MFC. Coming from a C# background I typically just use string for all, well, strings. I use them for class members, method parameters, and method return values. Now in …

  8. MFCでCStringをconst char*へ変換する方法が分からない

    May 10, 2020 · MFCでチェックボックスリストコントロールに追加した項目をプログラム終了時に保存し、プログラム開始時にその保存した内容をGetPrivateProfileStringA関数で読みだす処理を作って …

  9. How can I output a CString variable with std::cout?

    Oct 21, 2023 · Note that CString isn't a single class; it's a macro expanding to CStringA or CStringW depending on your compiler settings, whether you've configured to use narrow strings or wide …

  10. visual c++ - Convert MFC CString to integer - Stack Overflow

    Jun 14, 2009 · How to convert a CString object to integer in MFC.