You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/text/how-to-convert-between-various-string-types.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -785,7 +785,7 @@ Hello, World! (basic_string)
785
785
786
786
## Converting between narrow and wide strings
787
787
788
-
Legacy C and Windows apps use code pages rather than Unicode encodings when handling narrow strings ("C"-style strings) and wide strings ("Unicode" strings).
788
+
Legacy C and Windows apps use code pages rather than Unicode encodings when handling narrow strings (C-style strings) and wide strings (Unicode strings).
789
789
790
790
.NET strings are UTF-16, but ATL's `CStringA` is a narrow string, and the conversion from wide to narrow is performed by the [`WideCharToMultiByte`](/windows/win32/api/stringapiset/nf-stringapiset-widechartomultibyte) Win32 function. When converting a C-style `CHAR*` (a C-style `CHAR*` is a .NET `byte*`) to a string, the opposite Win32 function, [`MultiByteToWideChar`](/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar) is called.
791
791
@@ -801,11 +801,11 @@ Another approach is to use [`pinvoke`](/dotnet/standard/native-interop/pinvoke)
801
801
802
802
## See also
803
803
804
-
[ATL and MFC String Conversion Macros](../atl/reference/string-conversion-macros.md)\
805
-
[CString Operations Relating to C-Style Strings](../atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md)\
806
-
[How to: Convert Standard String to `System::String`](../dotnet/how-to-convert-standard-string-to-system-string.md)\
807
-
[How to: Convert`System::String` to Standard String](../dotnet/how-to-convert-system-string-to-standard-string.md)\
808
-
[How to: Convert`System::String` to `wchar_t*` or `char*`](../dotnet/how-to-convert-system-string-to-wchar-t-star-or-char-star.md)\
804
+
[ATL and MFC string conversion macros](../atl/reference/string-conversion-macros.md)\
805
+
[`CString` operations relating to C-style strings](../atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md)\
806
+
[How to: convert standard `String` to `System::String`](../dotnet/how-to-convert-standard-string-to-system-string.md)\
807
+
[How to: convert`System::String` to standard `String`](../dotnet/how-to-convert-system-string-to-standard-string.md)\
808
+
[How to: convert`System::String` to `wchar_t*` or `char*`](../dotnet/how-to-convert-system-string-to-wchar-t-star-or-char-star.md)\
809
809
[Programming with `CComBSTR`](../atl/programming-with-ccombstr-atl.md)\
0 commit comments