【发布时间】:2013-06-17 11:03:06
【问题描述】:
我在 Visual Studio 2012 的项目属性中看到您可以为您的应用程序选择字符集。
我使用 Unicode 字符集。 多字节字符集有什么问题?或者更好,我为什么要使用 Unicode?p>
以我正在做的 DLL 中的这段代码为例
RECORD_API int startRecording(
char *cam_name, // Friendly video device name
char *time, // Max time for recording
char *f_width, // Frame width
char *f_height, // Frame height
char *file_path) // Complete output file path
{
...
}
Windows.h 头文件中的许多 Unicode 函数使用 wchar_t 参数;我应该将 wchar_t 也用于我的函数参数吗?
我是否应该始终显式显示 W 函数(例如:ShellExecuteW)?
【问题讨论】:
-
阅读utf8everywhere.org 了解如何在 Windows 上正确执行 unicode。
标签: c++ visual-studio unicode internationalization