
c++
古巴与八股
未来的相视一笑 只因曾经的全然相爱
展开
-
file not recognized: file format not recognized collect2.exe: error: ld returned 1 exit status
/oci.dll: file not recognized: file format not recognizedcollect2.exe: error: ld returned 1 exit status出现类似错误一般是动态链接库版本(32位/64位)不对的问题造成的。原创 2020-08-11 23:13:38 · 5414 阅读 · 0 评论 -
utf_8转Unicode,char*(string)转BSTR,BSTR(unicode)转char*(string)
在进行上下位机通信的时候经常要和这些字符串类型打交道,这次来个彻底的总结。1.utf_8转Unicode (但要注意自己机器的大小端问题)wchar_t * utf_8ToUnicode(const char* szu8) { if (NULL == szu8) return NULL; size_t sSize = strlen(szu8); const unsigned ch原创 2017-05-19 14:29:01 · 1093 阅读 · 0 评论