Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cstring to string

CString cs ("Hello");
// Convert a TCHAR string to a LPCSTR
CT2CA pszConvertedAnsiString (cs);
// construct a std::string using the LPCSTR input
std::string strStd (pszConvertedAnsiString);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cstring #string
ADD COMMENT
Topic
Name
1+6 =