0
我想加載dll的基地址,如下面的代碼所示。加載dll基址的QT問題HMODULE
HMODULE g_hDll;
g_hDll = LoadLibraryW(_T(「4FM.dll」));`
當我運行它,我得到以下錯誤信息:
C:\Qt\UPI_ProIII_062414085021\fpga_lib\sipif.cpp:106: error: C2664: ‘HMODULE LoadLibraryW(LPCWSTR)’ : cannot convert argument 1 from ‘const char [8]’ to ‘LPCWSTR’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
我也試過Qlibrary
,但我不能對hmodule
加載。
相同的代碼工作正常,當我剛剛與Visual Studio運行2010