Hi,
I had this problem of calling dll references in an unmanaged dll..
I can call the main dll but I cannot call the functions of this dll since it's referencing to another dll....
this is roughly the code that I had
Public Class thiscode
<DllImport("Dll1.dll", EntryPoint:="Initialize", _
SetLastError:=True, CharSet:=CharSet.Ansi, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function Initialize() As Boolean
End Function
<DllImport("Dll2.dll", EntryPoint:="SomeFunction", _
SetLastError:=True, CharSet:=CharSet.Ansi, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function SomeFunction( _
<[In]()> ByVal InputA As Input1, _
<[In]()> ByVal InputB As Input2, _
<[In](), Out()> ByVal OutputA As Output1, _
<[In](), Out()> ByVal OutputB As Output2, _
ByVal Errormsg As StringBuilder) As Boolean
End Function
.
.
.
. after i do initilization, I call the function
Result = thiscode.SomeFunction(InputA, InputB, OutputA, OutputB, Errormsg)
SomeFunction is referencing to another dll... I can call the dll's on console base..but on web based It's giving me error...
Please help....i really appreciate you insights on this since It's my first time to use vb.net...thanks in advance
I had this problem of calling dll references in an unmanaged dll..
I can call the main dll but I cannot call the functions of this dll since it's referencing to another dll....
this is roughly the code that I had
Public Class thiscode
<DllImport("Dll1.dll", EntryPoint:="Initialize", _
SetLastError:=True, CharSet:=CharSet.Ansi, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function Initialize() As Boolean
End Function
<DllImport("Dll2.dll", EntryPoint:="SomeFunction", _
SetLastError:=True, CharSet:=CharSet.Ansi, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function SomeFunction( _
<[In]()> ByVal InputA As Input1, _
<[In]()> ByVal InputB As Input2, _
<[In](), Out()> ByVal OutputA As Output1, _
<[In](), Out()> ByVal OutputB As Output2, _
ByVal Errormsg As StringBuilder) As Boolean
End Function
.
.
.
. after i do initilization, I call the function
Result = thiscode.SomeFunction(InputA, InputB, OutputA, OutputB, Errormsg)
SomeFunction is referencing to another dll... I can call the dll's on console base..but on web based It's giving me error...
Please help....i really appreciate you insights on this since It's my first time to use vb.net...thanks in advance