473,480 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unable to find an entry point

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'."

Any solution?
Thanks in advance
Nov 21 '05 #1
5 5933

"Pratibha" <pr******@intraactionsoftware.com> wrote in message
news:%2********************@TK2MSFTNGP10.phx.gbl.. .
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'."


From the Visual Studion Command prompt run

dumpbin /exports C:\misc\rtbdll\rtbdts.dll

That will show you what the entry points are.

David

Nov 21 '05 #2
Thanks..
it showed me the following names
DllCanUnloadNow
DllGetClassObject
DllRegisterServer
DllUnregisterServer

How to know which is entry point.. So i tried all of them one by one. But
the function returns nothing while it should return "sucess"

Any suggestion??

"David Browne" <davidbaxterbrowne no potted me**@hotmail.com> wrote in
message news:Oz**************@TK2MSFTNGP15.phx.gbl...

"Pratibha" <pr******@intraactionsoftware.com> wrote in message
news:%2********************@TK2MSFTNGP10.phx.gbl.. .
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'."


From the Visual Studion Command prompt run

dumpbin /exports C:\misc\rtbdll\rtbdts.dll

That will show you what the entry points are.

David

Nov 21 '05 #3
On 2004-11-29, Pratibha <pr******@intraactionsoftware.com> wrote:
Thanks..
it showed me the following names
DllCanUnloadNow
DllGetClassObject
DllRegisterServer
DllUnregisterServer

How to know which is entry point.. So i tried all of them one by one. But
the function returns nothing while it should return "sucess"

Any suggestion??


That's a COM dll... You should be able to add a reference to it from
the references dialog box.

--
Tom Shelton [MVP]
Nov 21 '05 #4
I know that but i can add only .NET component and not COM ... so i have to
use dllimport.

I cant add refence of it.
"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
On 2004-11-29, Pratibha <pr******@intraactionsoftware.com> wrote:
Thanks..
it showed me the following names
DllCanUnloadNow
DllGetClassObject
DllRegisterServer
DllUnregisterServer

How to know which is entry point.. So i tried all of them one by one. But the function returns nothing while it should return "sucess"

Any suggestion??


That's a COM dll... You should be able to add a reference to it from
the references dialog box.

--
Tom Shelton [MVP]

Nov 21 '05 #5
"Pratibha" <pr******@intraactionsoftware.com> schrieb:
I know that but i can add only .NET component and not COM ... so i have to
use dllimport.

I cant add refence of it.


Simply add the reference on the "COM" tab of the "Add Reference..."
dialog...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6

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

Similar topics

1
20599
by: Stefan | last post by:
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir =...
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...
0
2421
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
3518
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
17919
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
3
15487
by: Saman | last post by:
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...
1
7058
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
6461
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
8311
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
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7045
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,...
0
7087
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
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...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4483
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...
0
2995
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...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
182
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...

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.