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

Is it possible to create a self-registering DLL in VB?

Status
Not open for further replies.

ctrlaltdel

Programmer
Apr 2, 2001
4
0
0
US
I have created a .REG file to apply additional registry settings for a DLL. However, I want to use regsvr32 DLLNAME and avoid the .REG file altogether.

Does VB support this feature? I have only found C++ examples.

Please help!!!!
 
I don't think there is a way to make the DLL a self-registering DLL, but you can do this with an install program. Either Install Shield or Package and Deployment Wizard will registry a DLL.

Steve
 
you could run a line in the DLL's Class initialize
[tt]
Shell "regsrv32 MyDLL.dll"
[/tt] Craig, mailto:sander@cogeco.ca

Remember not to name the Lambs...
It only makes the chops harder to swallow
 
Craig,
I think you have a Cath-22.
How will you instantiate the object to execute the Class_Initialze event to register the DLL if the DLL is not registered? Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Thank you steveblum, foada, CraigSander, and JohnYingling for your responses.

I'd hoped there was way to store the additional HKEY_CLASSES_ROOT\CLSID\ entries in the DLL.

I'll concentrate on using an installer package.

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top