无法加载 DLL“testDLL.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
就是这个错误,我已经把这个dll文件放到debug下了,怎么回事,请高手帮忙
就是这个错误,我已经把这个dll文件放到debug下了,怎么回事,请高手帮忙
解决方案 »
- 请大家帮忙看看这个socket收发文件。
- 数据库求助
- 同时启动两个窗体如何同时拖动两个窗体
- 求助高人!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- windows 的combox在dropdownlist模式怎么禁用鼠标的滚轮?
- 关于获取AJAX控件日期的问题
- (求助)窗体显示后,一闪即逝,但编译不提示错误
- 曲线方程求拐点坐标
- VS2010用C#访问SQL数据库,想实现用listbox1控件显示表1的某列,listbox2控件显示表2的某列,代码如下
- 如何屏蔽textbox中的缺省右键菜单(主要是不想出现paste).
- 制作一个搜索网站的简单原理?
- 如何在.aspx.cs中动态添加自定义的webcontrol????
public extern static int MUL(int i, int j);
{
[DllImport("testDLL.dll", EntryPoint = "Add", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
public static extern double Add(double a, double b);
}////////////////////////////////////////
private void button1_Click(object sender, EventArgs e)
{
double c = WindowsApplication2.Class1.Add(4.0, 6.0);
this.Text = c.ToString();
}
{
class MyMathFuncs
{
public:
// Returns a + b
static __declspec(dllexport) double Add(double a, double b); // Returns a - b
static __declspec(dllexport) double Subtract(double a, double b); // Returns a * b
static __declspec(dllexport) double Multiply(double a, double b); // Returns a / b
// Throws DivideByZeroException if b is 0
static __declspec(dllexport) double Divide(double a, double b); };
}
add reference