【发布时间】:2011-03-06 08:00:13
【问题描述】:
这一定是一个非常愚蠢的问题,但我对 C# 还是很陌生。
无论如何,我有一个 DLL,我正在用这样的一行导入它:
[DllImport(@"MyCoolDll")]
我直接从供应商提供的演示应用程序中提取了这个,但它一直抱怨找不到 DLL。实际错误(来自 Visual Studio 2010)是这样的:
Unable to load DLL 'MyCoolDll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
我尝试将编译后的 DLL 放在 bin/debug 和 bin/release 文件夹中。我什至尝试将其复制到 system32,但似乎没有任何效果。
有什么想法吗?
【问题讨论】:
标签: c# dll visual-studio-2010 dllimport