随笔 - 130
文章 - 4
评论 - 11
阅读 -
49万
04 2017 档案
CString 转换为 wchar_t *
摘要:1、将CString转换为const char* CString str = _T("231222"); std::string strDp = CStringA(str); //或: std::string strDp = CT2A(str, CP_ACP); 2、将const char*转换为w
阅读全文
DLL的Export和Import及extern "C"
摘要:今天使用Unrar.dll,在调用RARProcessFileW时,VS总是提示“error LNK2001: 无法解析的外部符号”。 Unrar.dll中是使用 extern "C" 对外输出函数,测试发现,其他函数可以正常调用,只有RARProcessFileW有此错误。 最后检查发现在.def
阅读全文