@@ -189,7 +189,7 @@ int main()
189
189
cout << printstr << endl;
190
190
// The following line of code is an easier way to
191
191
// display wide character strings:
192
- // wcout << (LPCTSTR) ccombstr << endl;
192
+ wcout << (LPCTSTR) ccombstr << endl;
193
193
}
194
194
195
195
// Convert a wide wchar_t string to a multibyte CStringA,
@@ -516,7 +516,7 @@ int main()
516
516
bstrt += _T(" (_bstr_t)");
517
517
wcout << bstrt << endl;
518
518
519
- // Convert to a wide character_bstr_t string from
519
+ // Convert to a wide character _bstr_t string from
520
520
// a wide character CStringW string.
521
521
bstr_t bstrtw(origw);
522
522
bstrtw += " (_bstr_t)";
@@ -536,8 +536,8 @@ int main()
536
536
// Convert to a wide character CComBSTR string from
537
537
// a wide character CStringW string.
538
538
CComBSTR ccombstrw(origw);
539
+
539
540
// Append the type of string to it, and display the result.
540
-
541
541
if (ccombstrw.Append(_T(" (CComBSTR)")) == S_OK)
542
542
{
543
543
CW2A printstrw(ccombstrw);
@@ -619,7 +619,7 @@ int main()
619
619
string orig("Hello, World!");
620
620
cout << orig << " (basic_string)" << endl;
621
621
622
- // Convert a wide char basic_string string to a multibyte char*
622
+ // Convert a wide character basic_string string to a multibyte char*
623
623
// string. To be safe, we allocate two bytes for each character
624
624
// in the original string, including the terminating null.
625
625
const size_t newsize = (strlen(orig.c_str()) + 1)*2;
0 commit comments