OutputDebugString()
是本地 ASCII,意味着它在调用 ASCII 版本的 OutputDebugStringA()
之前将输入的 Unicode 字符串转换为本地字符串。
有没有支持 Unicode 的替代方法来使用 OutputDebugString()
?
OutputDebugString()
是本地 ASCII,意味着它在调用 ASCII 版本的 OutputDebugStringA()
之前将输入的 Unicode 字符串转换为本地字符串。
有没有支持 Unicode 的替代方法来使用 OutputDebugString()
?
OutputDebugStringW
内部调用 OutputDebugStringA
,所以无法在系统代码页中表示的 Unicode 字符将被替换为 ?
。OutputDebugStringW
并没有使用它。
OutputDebugStringW
输出Unicode字符串,而是仅输出ASCII字符串。为了强制OutputDebugStringW
正确输出Unicode字符串,调试器需要调用WaitForDebugEventEx
以选择新行为。调用WaitForDebugEventEx
后,操作系统将知道调试器支持Unicode并专门选择接收Unicode字符串”。请使用最新的调试器。 - Remy Lebeau