2

I am trying o p/invoke a c++ class i have created into a asp.net web application. I have used the following tutorial - p/invoke

I can get it working when creating a c# console applicatioin but not a web application

I get the following error when I run it -

"Unable to load DLL 'MyDll.dll': The specified module could not be found."

I have tried putting MyDll.dll into the bin folder but this does not work.

I have set the build path in my web application to match the MyDll.dll but i have read that ASP.NET ignores this and automatically goes to the bin folder when you click debug(F5)

4

1 回答 1

3

您是否可能在没有安装 C++ 运行时的机器上运行它?错误消息将是您编写的错误消息。或者可能还缺少另一个 DLL。您可以使用 DependencyWalker 找到这一点:http: //www.dependencywalker.com/

于 2012-12-13T21:26:22.723 回答