CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002
    Posts
    16

    Question Registering your COM-DLL object and its Interface

    Hello,

    I have created a COM object (which is a DLL) and it has a Interface. But I don´t know how should i register it to be able to create an instance of it in another application. Many Thanks!!!

    Simon

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    You have to register it on the system (means writing stuff into the registry). The standard way of doing it is to open a command prompt window and type regsvr32 yourdll.dll.

    If you are building the project with VC then it automatically registers the dll after it has finished compiling. In the Build window you will see a line saying "Performing registration". If you go to Project > Settings > Custom Build, you will see that it actually just calls regsvr32 itself

    If this doesn't help, then you are probably talking about some other "registering" so please say a bit more about what kind of application your dll should be used in.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

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