Top "Cstring" questions

A string in the programming language C is represented as a sequence of characters followed by a null terminator (represented as \0).

getting the length of an array using strlen in g++ compiler

could someone explain why i am getting this error when i am compiling the source using following g++ compiler #include &…

c++ string cstring strlen
C++ LibCurl - Converting CURLcode into a CString

What would be the easiest way to convert the "res" variable (CURLcode) into a CString? Here's the standard example which …

c++ libcurl cstring
How would you improve this algorithm? (c string reversal)

Working through some programming interview challenges I found online, I had to write an algorithm to reverse a const char * …

c++ algorithm cstring
How to write INT64 to CString

I am coding in c++ windows. INT64 dirID = -1; CString querySQLStr = _T(""); querySQLStr.Format(L"select * from ImageInfo where FolderPath=%64…

c++ windows mfc cstring int64
C++ CString equivalent in C#

What is the C# equivalent for MFC's CString?

c# c++ mfc cstring
Write a unicode CString to a file using WriteFile API

How can I write contents of a CString instance to a file opened by CreateFile using WriteFile Win32 API function? …

winapi atl cstring writefile
C strcat garbage characters

I have a function in C where i am trying to get strings from two different locations (unknown size, could …

c cstring strcat
CString to TCHAR

Today after a long time I've seen this conversion: void SomeFunction( LPCTSTR szText ) ... CString str; str.Format( "A Simple Sentence" ); …

c++ cstring tchar
How do I convert an ATL/MFC CString to a QString?

Given the encoding of the project is probably Unicode (but not for sure) what is the best way of converting …

c++ qt mfc atl cstring
Correct way to define a constant C-string in C++?

Most of the time I see constant C-strings defined as: static char const* MY_CONSTANT = "Hello World"; However, the pointer …

c++ c++11 constants auto cstring