How can I use a native DLL in .Net 2005?
-
Hi dear friends. I've ported a native (Unmanaged) C++ DLL to managed and used in .Net 2003. Now I'm going to use this ported DLL it in .Net 2005. I change the compiler option /clr to /clr:oldSyntax and compile with no error. But at run-time I get a exception when I want to use the DLL in a C# client. The error message is: MyDLL.dll is attempting managed execution inside OS loader lock. Do not attempt to run managed code inside a DLLMain... Anyone can help me?
-
Hi dear friends. I've ported a native (Unmanaged) C++ DLL to managed and used in .Net 2003. Now I'm going to use this ported DLL it in .Net 2005. I change the compiler option /clr to /clr:oldSyntax and compile with no error. But at run-time I get a exception when I want to use the DLL in a C# client. The error message is: MyDLL.dll is attempting managed execution inside OS loader lock. Do not attempt to run managed code inside a DLLMain... Anyone can help me?
Not sure but this might help http://www.pinvoke.net
-
Hi dear friends. I've ported a native (Unmanaged) C++ DLL to managed and used in .Net 2003. Now I'm going to use this ported DLL it in .Net 2005. I change the compiler option /clr to /clr:oldSyntax and compile with no error. But at run-time I get a exception when I want to use the DLL in a C# client. The error message is: MyDLL.dll is attempting managed execution inside OS loader lock. Do not attempt to run managed code inside a DLLMain... Anyone can help me?