[問題] MFC視窗程式 LoadLibrary() 問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Visual Studio 2008 C++ MFC視窗程式
問題(Question):
執行一個別人寫好的MFC視窗程式
在自己的電腦上不能執行
在其他電腦上可執行
依程式顯示的除錯碼
if ( !m_pPacketLib->LoadLibrary() )
return EC_E_NOTFOUND; //(顯示的除錯碼)
得知 LoadLibrary() 回傳值是NULL(0)
LoadLibrary()定義於WINBASE.h
#define LoadLibrary LoadLibraryA
LoadLibraryA(
__in LPCSTR lpLibFileName
);
參考資料:
http://home.educities.edu.tw/wanker742126/win32asm/w32asm_ch20.html
http://forum.slime.com.tw/thread99559.html
不知道我的電腦缺少什麼DLL檔
或要作什麼設定
麻煩知道的板友幫忙解答一下,感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.224.64
→
08/15 20:40, , 1F
08/15 20:40, 1F
→
08/15 20:41, , 2F
08/15 20:41, 2F
CPacketLib* m_pPacketLib;
class CPacketLib
{
bool LoadLibrary()
{
CString sPath = "EcEtherLib.dll";
return LoadLibrary(sPath);
}
}
※ 編輯: lo11212001 來自: 140.123.224.64 (08/15 20:51)
推
08/15 20:55, , 3F
08/15 20:55, 3F
→
08/15 20:55, , 4F
08/15 20:55, 4F
→
08/15 20:55, , 5F
08/15 20:55, 5F
謝謝suhorng大大
但我找不到 EcEtherLib.dll
只發現有:程式資料夾\Source\EcEtherLibApi.h
※ 編輯: lo11212001 來自: 140.123.224.64 (08/15 21:01)
→
08/15 21:04, , 6F
08/15 21:04, 6F
→
08/15 23:04, , 7F
08/15 23:04, 7F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章