在vs2010中安装了EasyX图形库在编译时出现如下错误
f:\c_练习及文件\1\1\11.cpp(53): error C2664: “SetWindowTextW”: 不能将参数 2 从“const char ”转换为“LPCWSTR”1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换1>f:\c_练习及文件\1\1\11.cpp(178): error C2665: “setfont”: 4 个重载中没有一个可以转换所有参数类型1> d:\visual studio2010\microsoft visual studio 10.0\vc\include\graphics.h(194): 可能是“void setfont(int,int,LPCTSTR)”1> 尝试匹配参数列表“(int, int, const char )”时 宽字符问题,你试试把project setting里面的改下,从UNICODE改为多字节试试。
页:
[1]