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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add user generated dll in vb.net

Status
Not open for further replies.

pratibha14

Technical User
Mar 2, 2004
30
hi..
I want to add a dll named rtb.dll to my vb.net project and use its function. But when i add it through Add Reference, it gives following error:
"This is not valid Assembly or COM component"

How can i add this dll in my project and use its function?
plz help
thanks
 
Is it a dll made in .net?

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
No this is neither .Net assembly nor COM component
 
then you will need to do something like this after registring your dll

Code:
Private Declare Ansi Function WNetGetConnection Lib "mpr.dll" Alias "WNetGetConnectionA" (ByVal lpszLocalName As String, ByVal lpszRemoteName As System.Text.StringBuilder, ByRef cbRemoteName As Int32) As Int32

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top