P
PenguinPig
Dear All
I have register a 3rd's DLL into my pc, and I can create an instance by
using CreateObject in ASP page, eg.
set obj = CreateObject("3rdDLLName");
And it contains several methods such as
string MyMethod(string)
string YourMethod(string)
string NoMethod(string)
Because of some reason, I need using this DLL's function in my C# program,
so I do following
[DllImport("C:\\dll\\3rdDLLName.dll")]
public static extern string MyMethod(string content);
But when I call such method in my program, it throw
Unhandled Exception: System.EntryPointNotFoundException: Unable to find an
entry
point named MyMethod in DLL C:\dll\3rdDLLName.dll
My question is
1. Do the method call in ASP is the EntryPorint of the Dll?
2. How to know the EntryPoint of the Dll?
Many Thanks
I have register a 3rd's DLL into my pc, and I can create an instance by
using CreateObject in ASP page, eg.
set obj = CreateObject("3rdDLLName");
And it contains several methods such as
string MyMethod(string)
string YourMethod(string)
string NoMethod(string)
Because of some reason, I need using this DLL's function in my C# program,
so I do following
[DllImport("C:\\dll\\3rdDLLName.dll")]
public static extern string MyMethod(string content);
But when I call such method in my program, it throw
Unhandled Exception: System.EntryPointNotFoundException: Unable to find an
entry
point named MyMethod in DLL C:\dll\3rdDLLName.dll
My question is
1. Do the method call in ASP is the EntryPorint of the Dll?
2. How to know the EntryPoint of the Dll?
Many Thanks