CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Problem registering a DLL

    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.


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Problem registering a DLL

    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

  3. #3
    Guest

    Re: Problem registering a DLL

    Chris:

    Thanks a lot--it worked!


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

Featured