Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Programmatically registering com component

robtemprobtemp Posts: 4Member
Hello,

Does anyone know how to programmatically register a com component? I have written a simple component (a dll) in assembler and would like to programmatically register it. I'm not sure which windows api functions have to be called from DllRegisterServer and DllUnregisterServer which should be defined in my dll. Any help would be appreciated.

Robert

Comments

  • miguellmiguell Posts: 1Member
    Take a look at "http://chronos.cs.msu.su/MinGW32/Khan_Mumit/misc/", for me, especially Comexample2.zip has been very usefull...


    As for myself, I'm allready spending 5 days on how to figure out How to call CoCreateInstance .. I only know the CLSID parameter and would like to figure out how to find out all of the IID's which I can Pass. I have a DLL without an interface-definition and am working with C-Dev++. Is it really possible???

    TIA, Miguel
  • tinoztinoz Posts: 2Member
    : Hello,
    :
    : Does anyone know how to programmatically register a com component? I have written a simple component (a dll) in assembler and would like to programmatically register it. I'm not sure which windows api functions have to be called from DllRegisterServer and DllUnregisterServer which should be defined in my dll. Any help would be appreciated.
    :
    : Robert
    :
    :
    Look at this article
    http://www.codeproject.com/com/mmtopo_comid.asp

    there is also a list of articles that will help here
    http://www.codeproject.com/com/

    and the one that I know has programmatically registration source is the article "Understanding The COM Single-Threaded Apartment Part 1 and 2"

    hope this helps. It helped me. Tino
Sign In or Register to comment.