Using an unmanaged C++ DLL in ASP.NET
-
Hi all... I have a DLL which was created in C++ that I am trying to use in an ASP.NET(VB) web application. In my DLL, I have exported my functions as follows: extern "C" __declspec(dllexport) int Init(char *szString1, char *szString2) In the .NET application, I have imported the library using: Public Declare Function Init Lib "MyLib.dll" (ByVal Hostname As String, ByVal Port As String) As Int32 I copied the library into the bin directory of the .NET application. This seems to run properly on my local machine, but once I moved it to a production webserver, I get an error "Unable to load MyLib.dll" Does anyone have an idea how to solve this problem? Any suggestions would be greatly appreciated. Thanks in advance, James
-
Hi all... I have a DLL which was created in C++ that I am trying to use in an ASP.NET(VB) web application. In my DLL, I have exported my functions as follows: extern "C" __declspec(dllexport) int Init(char *szString1, char *szString2) In the .NET application, I have imported the library using: Public Declare Function Init Lib "MyLib.dll" (ByVal Hostname As String, ByVal Port As String) As Int32 I copied the library into the bin directory of the .NET application. This seems to run properly on my local machine, but once I moved it to a production webserver, I get an error "Unable to load MyLib.dll" Does anyone have an idea how to solve this problem? Any suggestions would be greatly appreciated. Thanks in advance, James
Did you registered the DLL?