When I register a DLL which I made, using Regsvr32, it gets registered as ProjectName.ClassModuleName (Ex: prjForums.clsThreads), in the registry. How to make it register with a custom name or just the project name?
Printable View
When I register a DLL which I made, using Regsvr32, it gets registered as ProjectName.ClassModuleName (Ex: prjForums.clsThreads), in the registry. How to make it register with a custom name or just the project name?
The obvious questions are:Quote:
Originally Posted by vshankaa
Why would you want to do that? What purpose could you have for this?
First - you get a custom name by naming the project and class to whatever "custom" name you want. You already can do that.
Second - it would be of no use to register a component without the class name. There would be no way for client applications to find the functionality your component exposes.
I failed to mention that the DLL is a Internet Explorer toolbar. So, in Internet Explorer it has a long name, that is, HelloProject.HelloBar (Project Name.Class Name). I want it to be just HelloProject.
There might be a way to change the name - I have never looked into that, but components are registered at the class level, and the ProgId will always be SomeProject.SomeClass.Quote:
Originally Posted by vshankaa
However, you can give a VB6 project a definition on the project properties > general tab.
Of course, I am not sure that is of any help to you.