在编译VS2005时出现的错误

来源:互联网 发布:矩阵计算 编辑:程序博客网 时间:2024/05/21 06:27

Error 1 error C2664: 'CreateFileW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR' x:/Jaca/jaca/winamp.cpp 86
Error 2 error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'char [260]' to 'LPCWSTR' x:/Jaca/jaca/winamp.cpp 288
Error 3 error C2664: 'GetModuleFileNameW' : cannot convert parameter 2 from 'char [260]' to 'LPWCH' x:/Jaca/jaca/winamp.cpp 344
Error 4 error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'char [260]' to 'LPCWSTR' x:/Jaca/jaca/winamp.cpp 364
Error 5 error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'char [260]' to 'LPCWSTR' x:/Jaca/jaca/winamp.cpp 387
Error 6 error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'char [260]' to 'LPCWSTR' x:/Jaca/jaca/winamp.cpp 581

 

解决方法

As per VC++ Compiler. Go to Project->Properties. On the Property Pages, Select Configuration Properties->  Character Set-> to Not Set.


原创粉丝点击