摘要:
If you want to convert fromstd::wstringtoconst WCHAR*(i.e. the returned pointer givesread-only accessto the string content), then callingstd::wstring::c_str()method is just fine: std::wstrin... 阅读全文
posted @ 2016-07-05 14:44
今夜太冷
阅读(2234)
评论(0)
推荐(0)
摘要:
BSTR A BSTR (Basic string or binary string) is a string data type that is used by COM, Automation, and Interop functions. Use the BSTR data type in all interfaces that will be accessed from script. C+... 阅读全文
posted @ 2016-07-05 11:58
今夜太冷
阅读(931)
评论(0)
推荐(0)
摘要:
使用GetProcAddressFunction时,有以下几点需要特别留意: 1. 第二个参数类型是LPCSTR,不是; 2. 用__declspec(dllexport),按C名称修饰(extern "C") 导出的函数名,对于__stdcall和__fastcall调用约定是相同的;对__cdecl是不同的(导出的函数名没有前面的下划线);... 阅读全文
posted @ 2016-07-05 11:29
今夜太冷
阅读(14470)
评论(0)
推荐(0)
浙公网安备 33010602011771号