Unable to find an entry point named FUNCATIONNAME in DLL DLLNAME

S

Saman

I have a third party dll and I am sure that it is not an activeX or dotnet
assembly .
I have check it up with Dependency Walker software and found the list of
it's exported function in C++ syntax
for example :

void __cdecl TelEnd(void)
void __cdecl FaxStop(void)

and so on ...

I can not call them from VB/VB.NET and I received the following error
message
" Unable to find an enry point named FUNCTIONNAME in Dll DLLNAME "

I use the following declaration :

Declare Sub TelEnd Lib "......\MultiFunc.dll" ()

what is wrong with that?


Thanks
Saman
 
S

Saman

Hi ,
Thanks Mohamed

but there is no difference , I tried your hint as following but the error
message is still the same
<System.Runtime.InteropServices.DllImport("C:\Program Files\PANA
LINK\MultiFunc.dll", EntryPoint:="TelEnd", SetLastError:=True,
CharSet:=System.Runtime.InteropServices.CharSet.Unicode,
ExactSpelling:=True,
CallingConvention:=System.Runtime.InteropServices.CallingConvention.StdCall)>
Public Shared SubTelEnd()

End Sub

and the error is
Additional information: Unable to find an entry point named TelEnd in DLL
C:\Program Files\PANA LINK\MultiFunc.dll.
 
M

Mattias Sjögren

I have check it up with Dependency Walker software and found the list of
it's exported function in C++ syntax

Make sure you turn off the Undecorate C++ Functions option to see the
actual exported name of the function.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top