473,769 Members | 3,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "......\MultiFu nc.dll" ()

what is wrong with that?
Thanks
Saman

Nov 21 '05 #1
3 15508
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/
frlrfSystemRunt imeInteropServi cesDllImportAtt ributeClassTopi c.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 .InteropService s.DllImport("C: \Program Files\PANA
LINK\MultiFunc. dll", EntryPoint:="Te lEnd", SetLastError:=T rue,
CharSet:=System .Runtime.Intero pServices.CharS et.Unicode,
ExactSpelling:= True,
CallingConventi on:=System.Runt ime.InteropServ ices.CallingCon vention.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.microsof t.com> wrote in message
news:gA******** ******@TK2MSFTN GXA02.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/
frlrfSystemRunt imeInteropServi cesDllImportAtt ributeClassTopi c.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
537
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 DLL just fine but then says "Unable to find an entry point When I try to use "user32.dll" everything works, but doesn't with my DLL I am using .NET Framework 1.1 and VisualStudio .NET 2003 on Windows 2000 Pro
6
4304
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
2450
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 a website indicating that if any of your .dll names are security.dll, it could cause this issue. I happened to have named the service that -- so I renamed the service's dll, and it still didn't work. I decided to start from scratch, and built...
1
3539
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 remote site is trusted. Also, my web site uses a custom HTTPModule implemented in a DLL named Security.dll. Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. Description: An unhandled exception occurred during...
6
17975
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
5980
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 following error "Unable to find an entry point named 'Init' in DLL 'C:\misc\rtbdll\rtbdts.dll'."
1
7081
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.' this is the Exception An unhandled exception of type 'System.EntryPointNotFoundException' could anyone help me to fix this...
4
6505
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': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'Exactus.UX.Studio.v1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
53
8416
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 language="javascript" type="text/javascript">
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.