Results 1 to 4 of 4

Thread: Registering DLL with custom name

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    5

    Question Registering DLL with custom name

    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?

  2. #2
    Addicted Member
    Join Date
    Nov 2006
    Posts
    132

    Re: Registering DLL with custom name

    Quote Originally Posted by vshankaa
    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:
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    5

    Re: Registering DLL with custom name

    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.
    Last edited by vshankaa; Dec 4th, 2006 at 04:39 AM.

  4. #4
    Addicted Member
    Join Date
    Nov 2006
    Posts
    132

    Re: Registering DLL with custom name

    Quote Originally Posted by vshankaa
    I failed to mention that the DLL is a Internet Explorer toolbar. So, in Internet Explorer it has a long name, that is, IndicBand.IndicBar (Project Name.Class Name). I want it to be just IndicBand.
    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.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width