Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to find an entry point

Status
Not open for further replies.

pratibha14

Technical User
Mar 2, 2004
30
0
0
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
 
Is DLLImport designed for COM object DLLs? the DLLs .Net creates don't have 'start' points, so far as I know. Is there any reason you can't set up a reference to the DLL using the reference browser?

-Rick

----------------------
 
Is rtbdts.dll something that you wrote?

You usually get this error when the calling convention within the DLL methods wasn't set to stdcall.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top