Click to See Complete Forum and Search --> : Problem registering a DLL


April 15th, 1999, 01:30 PM
I have a problem registering an ActiveX DLL. I create the ActiveX DLL project, add the code that want in the class, save the project, and then choose “Make [name of project] DLL” from the file menu, and the DLL is successfully created. Then I register the DLL using regsvr32.exe [path/file name] from Start/Run on the windows desktop, also successfully. However, when I go to add to the Project/References menu choice in VB6, my project is always listed as “Project 1” instead of the name I’ve given it. How do I get it to use the name I want? Thanks.

Chris Eastwood
April 15th, 1999, 03:17 PM
Hi

In the Project->Properties tab, you need to change the 'Project Description' field to a proper name, such as :

'My ActiveX DLL'

This is the name that will show up in the references dialog. If you need to do a CreateObject on this DLL, then you use the name as specified in the 'Project Name' Tab, eg :

'MyProject'

Set oObject = CreateObject ("MyProject.MyClass")


Regards


Chris Eastwood




CodeGuru - the website for developers
http://www.codeguru.com/vb

April 15th, 1999, 07:17 PM
Chris:

Thanks a lot--it worked!