Ask a Question related to ASP.NET General, Design and Development.
-
Sacha Korell #1
How to access unmanaged DLL from within ASP.NET (using VB.NET)
(This is a continuation of my post from earlier today.)
I have been semi-successful by using the good old DECLARE FUNCTION like
this:
Declare Function OpenCD Lib "functions.dll" Alias "COpenCD" (ByVal
DiscNumber As Long, ByVal DiscPath As String) As Long
However, when I make the call to the function within the DLL I get:
"Object reference not set to an instance of an object."
Do I somehow have to instantiate the DLL???
====================================
I have also tried to use the DllImport statement like this:
<DllImport("functions.dll", EntryPoint:="OpenCD", SetLastError:=True,
CharSet:=CharSet.Unicode, ExactSpelling:=True,
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function COpenCD(ByVal DiscNumber As Long, ByVal DiscPath As
String) As Long
' Leave function empty - DLLImport attribute forwards calls to OpenCD to
' OpenCD in functions.dll.
End Function
....but when I use it, I get:
"Unable to find an entry point named OpenCD in DLL functions.dll."
How can I access an unmanaged DLL from within ASP.NET?
Please help!
Thanks,
Sacha
Sacha Korell Guest
-
Web Service and unmanaged DLL using ADO
Hi. I'm writting a web service (C#) that using an unmanaged DLL written in C++. This DLL uses ADO to access to a MySQL database. If I use this... -
ASP.NET App with Unmanaged Code - HELP!
I think the following is a security configuration issue, can someone help? I've been stumped on this for a couple of days now and I'm feeling the... -
Unmanaged DLL and ADO
I have a C# written webservice that calls an unmanaged DLL. The DLL uses ADO to access SQL database. I can call the DLL with no problem from a C#... -
Access File Share from ASP.NET using Unmanaged Code
Hi, We have an application that requires appropriate users to run command files on an adhoc basis. We have implmented a library that uses the... -
Problems using a unmanaged DLL from ASP.NET
Hi I need to access a unmanaged DLL from my ASP.NET page. This DLL (a "true" DLL, not a COM DLL) is a database manager with 2 DLLs and 1 .EXE (no...



Reply With Quote

