WCHAR转char问题
Helpme:This program want to print char character using printwchar function and print WCHAR character using printchar function. Unfortunately I received three errors as three big gift to me.Can you help me? Thank you indeed!!Platform:WindowsXP professional sp2
TOOLS:Visual studio 2005-Visual c++
DirectX 9.0 SDK
Email:houruiming@
You can help me ,send email please!!
//////////////////////////////////////
Following is the output look like:
------ 已启动全部重新生成: 项目: WCHARchar, 配置: Debug Win32 ------
正在删除项目“WCHARchar”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
WCHARchar.cpp
.\WCHARchar.cpp(14) : error C2440: “初始化”: 无法从“const char [6]”转换为“WCHAR [100]”
没有使该转换得以执行的上下文
.\WCHARchar.cpp(17) : error C2664: “printchar”: 不能将参数 1 从“WCHAR [100]”转换为“char *”
与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
.\WCHARchar.cpp(18) : error C2664: “printwchar”: 不能将参数 1 从“char [100]”转换为“WCHAR *”
与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
生成日志保存在“file://d:\My Documents\Visual Studio 2005\Projects\hrm\test\WCHARchar\Debug\BuildLog.htm”
WCHARchar - 3 个错误,0 个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过 ==========
WCHARchar.rar
(2.84 KB)