Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. doubt regarding a com server containing another com server

doubt regarding a com server containing another com server

Scheduled Pinned Locked Moved COM
questionc++comsysadminhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #1

    Hello Lets say you have a simple COM server dll that does nothing much. now say you want to write an exe COM server that contains this dll COM server is there anything special you need to do with the appwizard? and how do you register the exe server as regsvr32 is failing but VC++ has registered it [how do I unregister it now?] and what did VC++ use to register it if it didnt use regsvr32 am confused... any help is hugely appreciated regards and thanks in advance nish

    M I 2 Replies Last reply
    0
    • N Nish Nishant

      Hello Lets say you have a simple COM server dll that does nothing much. now say you want to write an exe COM server that contains this dll COM server is there anything special you need to do with the appwizard? and how do you register the exe server as regsvr32 is failing but VC++ has registered it [how do I unregister it now?] and what did VC++ use to register it if it didnt use regsvr32 am confused... any help is hugely appreciated regards and thanks in advance nish

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      If you have written your COM EXE Server using atl, then to register the exe you do mycomserver.exe /RegServer regsvr32 is just for DLL's. There should be no problem in calling a DLL COM server from a COM server EXE. I use this technique a lot. Michael :-)

      1 Reply Last reply
      0
      • N Nish Nishant

        Hello Lets say you have a simple COM server dll that does nothing much. now say you want to write an exe COM server that contains this dll COM server is there anything special you need to do with the appwizard? and how do you register the exe server as regsvr32 is failing but VC++ has registered it [how do I unregister it now?] and what did VC++ use to register it if it didnt use regsvr32 am confused... any help is hugely appreciated regards and thanks in advance nish

        I Offline
        I Offline
        In At
        wrote on last edited by
        #3

        The basic rule of COM says, In COM, once you "publish" an interface contract by shipping a component, the contract is immutable—it cannot be changed in any way. You can not add. You can not delete. You can not modify. But, when you open Microsoft Word 97/98 and Microsoft Word 2000 's .OLB files, you will see that for extending the interfaces, they have added methods to the old interfaces. For example, in MS Word 2000 they have added methods in Application interface, and all the other interfaces. Why So? I feel the right approach is to add new interface if you want to extend an interface. Can somebody tell me its' reason??

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups