Skip to content

Commit f052952

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#665 from drvoss/patch-25
Update how-to-convert-between-various-string-types.md
2 parents 1092fa5 + a8e6e97 commit f052952

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/text/how-to-convert-between-various-string-types.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ int main()
727727
// while we call native functions.
728728
pin_ptr<const wchar_t> wch = PtrToStringChars(orig);
729729

730-
// Make a copy of the system string as a multibyte
730+
// Make a copy of the System::String as a multibyte
731731
// char* string. Allocate two bytes in the multibyte
732732
// output string for every wide character in the input
733733
// string, including space for a terminating null.
@@ -738,20 +738,20 @@ int main()
738738
wcstombs_s(&convertedChars, nstring, newsize, wch, _TRUNCATE);
739739
cout << nstring << " (char *)" << endl;
740740

741-
// Convert a wide character system string to a
741+
// Convert a wide character System::String to a
742742
// wide character wchar_t* string.
743743
const size_t newsizew = origsize;
744744
wchar_t *wcstring = new wchar_t[newsizew];
745745
wcscpy_s(wcstring, newsizew, wch);
746746
wcout << wcstring << _T(" (wchar_t *)") << endl;
747747

748-
// Convert a wide character system string to a
748+
// Convert a wide character System::String to a
749749
// wide character _bstr_t string.
750750
_bstr_t bstrt(wch);
751751
bstrt += " (_bstr_t)";
752752
cout << bstrt << endl;
753753

754-
// Convert a wide character system string
754+
// Convert a wide character System::String
755755
// to a wide character CComBSTR string.
756756
CComBSTR ccombstr(wch);
757757
if (ccombstr.Append(_T(" (CComBSTR)")) == S_OK)

0 commit comments

Comments
 (0)