原因描述
当前项目工程只支持UNICODE字符
解决方案一
工程属性->配置属性–>常规—>字符集—->使用多字节符字符集 即可。
解决方案二
也就是宽字符的问题,所以这行代码,应该编译有错误 hinst=LoadLibrary(“InTheHand.Net.Personal.dll”);
报错: cannot convert parameter 1 from ‘char [27]‘ to ‘const unsigned short *’
将代码改为:
hinst=LoadLibrary(L”InTheHand.Net.Personal.dll”);
或者
hinst=LoadLibrary(_T(“InTheHand.Net.Personal.dll”)); 即可。