c++ - 当 Unicode 模式打开时打印到 VS2010 中的调试输出

标签 c++ visual-studio unicode visual-studio-debugging

打印“TEST”等文本字符串以在 Visual Studio 2010 中调试输出的简单“unicode 模式”兼容方式?

我看到一些说明指出我需要更改一些设置才能执行此操作。但出于其他原因,我需要坚持使用 unicode。

最佳答案

没什么大不了的:OutputDebugStringW 会为您进行转换。所以你可以只打印 L"TEST",它会为你把它转换成 "TEST"

关于c++ - 当 Unicode 模式打开时打印到 VS2010 中的调试输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8120274/

相关文章:

c++ - 嵌套循环创建美国国旗

c++ - 理解 C++ 类和函数调用

visual-studio - 有什么方法可以将项目分组到项目管理器的文件夹中吗?

python - Tornado 请求处理程序映射到国际字符

c++ - 给定类型为 Container<T>::Iterator 的函数参数,我如何实现特定类型 T 的特定重载?

Android - NDK - 需要 1+ args 的 Variadic 宏

visual-studio - 在 nuget 包中将内容文件设置为 "copy local : always"

c++ - 如何在 DLL 中隐藏导出函数

python - 日本系统上的 Jython 'unknown enocoding ms932'

c++ - 你能写出 "U+9FA5 (龥)"和 "U+0041 (A)"unicode 字符的 UTF-8、UTF-16 和 std::wstring 表示吗?