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

My DLL REGSVR32 Entry Point

Status
Not open for further replies.

astrodestino

IS-IT--Management
Feb 19, 2005
179
AR
Hi!
I'm making my first DLL in VB.NET, I always use VB5 for my apps.
I started my classlibrary project, I got my public class xxxx in there I got my public sub xxxx(parameters), etc, also got a form in my dll, the thing is that I compile it and when I execute regsvr32 mydll.dll it says that an entry point couldnt be found and my dll wont be registered.My dll base address is &H11000000
In vb5/6 I made my dlls and I registered them without trouble. Can anyone tell me what am I doing wrong?
Thank you!
 
.Net dll's don't need to be registered. They get loaded in the GAC by the application that uses them. If you need to access the .dll from a com based language (VB 5/6, php, etc) you can use regasm.exe to create a .tlb (err tbl?) file.

-Rick

----------------------
 
the compile for COM Interop is in the .Net IDE. right click on your project, goto properties, Configuration Properties, Build, then click the "Register for COM Interop" check box. That will make it work on your machine. Any other machine you want to use it on you will need to use RegASM on it. See.. huh, thought I wrote a FAQ on this.

guess not, search google/microsoft for regasm, com, and vb.net you should find some instructions. And if I get a chance, I'll post my instructions as a FAQ.

-Rick

----------------------
 
mmmmmm... I thought that biulding a dll was like VB5/6 but since sometimes I am going to mix it with vb5/6 apps it will be more a problem than a solution... in this case i'll rewrite the dll for vb5/6.
Thank you for your help.
 
Yeah, building .Net for COM use is a pita from what I've run into so far. I'm only doing it because a 3rd party needs access to some of our routines and I don't have the time to re-write it in VB.

-Rick

----------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top