转载来自:http://blog.csdn.net/dsq417379725/article/details/6415066;版权为原作者,此处为转载
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.