我使用例如添加VC++的lib在我的VB.NET中的程序:VB.NET无法加载DLL无法找到指定的模块。当dllimport的
<DllImport("KMpeg4.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Shared Function KOpenInterface() As System.IntPtr
End Function
我在运行时得到了错误:
Unable to load DLL 'KMpeg4.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
我已经把这个LIB无处不在,包括system32
,仍然没有运气,这意味着它缺少依赖库的KMpeg4.dll
。
所以我跑的Dependency Walker这给了我丢失的lib目录下:
API-MS-WIN-CORE-COM-L1-1-0.DLL API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL API-MS-WIN-CORE-WINRT-L1-1-0.DLL API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL DCOMP.DLL GPSVC.DLL IESHIMS.DLL
和坏lnking功能:
c:\windows\system32\API-MS-WIN-CORE-THREADPOOL-L1-1-0.DLL c:\windows\system32\OLE32.DLL c:\windows\system32\DWMAPI.DLL c:\windows\system32\IEFRAME.DLL c:\windows\system32\IMM32.DLL c:\windows\system32\MFPLAT.DLL c:\windows\system32\NDFAPI.DLL c:\windows\system32\USERENV.DLL c:\windows\system32\UXTHEME.DLL
的Dependency Walker提供了以下错误:
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.
我已经安装了Microsoft VC++ 2005,2008,2010 x86和x64以及.Net framework 4.
除了我试试,如果KMpeg4.dll
弹出使用sysinternal进程监视器看到的,但它不会加载KMpeg4.dll
以前生产程序得到错误异常
从封装的LIB可能来自任何想法?
或者,如何解决这个问题?
您使用的是哪个Windows版本,以及KMpeg4.dll的Windows版本是什么意思?从依赖关系的名称看来,KMpeg4适用于Windows 8 RT。你正在运行Windows 7吗? –