簡體   English   中英

如何在Win32 DLL程序中使用IntelliProtector API

[英]How can I use the IntelliProtector API in a win32 DLL program

我是DLL的初學者。 我已經開發了要通過IntelliProtector API保護的軟件。

我的問題是:如何在我的軟件中包含這樣的庫/源代碼(無論您叫什么),並對其進行編譯? 我已將文件添加到我的項目中,然后它出現了一些與MFC dll相關的錯誤。 我用Google搜索並將設置更改為共享的MFC dll。

fatal error C1189: #error :  Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

更改后,我會收到此錯誤:

fatal error LNK1169: one or more multiply defined symbols found

我認為這是由2個入口點引起的? 我真的無法弄清楚這一點。 任何幫助將不勝感激。

我收到以下錯誤:

1>mfcs100d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in dllmain.obj
1>E:\software\PokerLog\Debug\Poker.dll : fatal error LNK1169: one or more multiply defined symbols found
1>
1>Build FAILED.

如果dllmain是您的代碼,並且您不需要處理DLL_THREAD_ATTACH和DLL_THREAD_DETACH,那么您可能希望擺脫DllMain並將代碼移到CWinApp派生類的InitInstance / ExitInstance。 或者,您可以嘗試使用鏈接器選項/ FORCE:MULTIPLE。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM