473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Unable to find an entry point named FUNCATIONNAME in DLL DLLNAME

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

Nov 21 '05 #1
3 15480
Hi Saman
If you just add reference to the dll may be try to use DIIimport
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemRuntimeInteropServicesDllImportAttribut eClassTopic.asp
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 21 '05 #2
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:\Prog ram Files\PANA
LINK\MultiFunc.dll", EntryPoint:="TelEnd", SetLastError:=True,
CharSet:=System.Runtime.InteropServices.CharSet.Un icode,
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.
"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:gA**************@TK2MSFTNGXA02.phx.gbl...
Hi Saman
If you just add reference to the dll may be try to use DIIimport
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemRuntimeInteropServicesDllImportAttribut eClassTopic.asp
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 21 '05 #3
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Randy Crockett | last post by:
I have created a very simple DLL in VC++ 6.0, then created a very simple App in VC++ 6.0 to use the DLL and this works fine When I try to use the same DLL in C#, with DLLImport, the app finds the...
6
by: aneesh | last post by:
Hi all, I would like to know whether we can specify another function instead of main as entry point. Thanks Aneesh
0
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found...
1
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the...
6
by: Prashant Bhuptani | last post by:
Hi Guys, I am trying to use a C++ dll in VB.NET code. I have imported the dll in the following manner: <code> Imports System.Runtime.InteropServices
5
by: Pratibha | last post by:
hi, i made a dll named rtbdts.dll and call it from vb.net through dllimport <DllImport("C:\misc\rtbdll\rtbdts.dll")> Public Shared Function Init() As String End Function But it returns the...
1
by: raam_kimi | last post by:
Hi All I got some problem in importing advapi32.dll when i call the LogonUser method it throws an error like this 'Unable to find an entry point named LogonUser in DLL advapi32.dll.' ...
4
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am getting the following in a VC++ EXE (using VS2005) that links several C++ DLLs and uses MFC and ATL, when I try to start it under the debugger: ------- 'Exactus.UX.Studio.v1.exe':...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.