我正在使用在其代碼中使用DLLImport的第三方應用程序。他們正在使用的COM DLl,他們分別給了我。即使該文件位於Bin文件夾中,DLLImport也不能正常工作
我確實將該文件放在第三方源代碼的Bin/Debug文件夾中,並重新編譯了代碼。
這樣做後,我看到無法加載我的應用程序模塊錯誤。任何想法,爲什麼它可能是這種情況?
它拋出以下錯誤:
Unable to load DLL 'QMSL_MSVC10D.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
我沒有在它運行的依賴學步車,我看到下面的錯誤:
Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
我的問題是,他們怎麼可能編譯DLL有這麼多錯誤?在Dependency Walker中,我看到的錯誤和我們看到的錯誤之間存在任何相關關係的可能性有多大?
你可以爲我們提供錯誤信息?沒有它或一些其他的信息,這將是很難弄清楚這裏有什麼問題 – JaredPar
我在上面添加了錯誤的詳細信息。 – TeaLeave
該DLL必須配合您的代碼,而不是第三方源代碼。 dll的一點是它不會被編譯到第三方庫中。你必須把它放在一邊。將它添加到您的項目並使其成爲內容,如果更新則複製。 – tofutim