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. Can COM interface functions be overloaded?

Can COM interface functions be overloaded?

Scheduled Pinned Locked Moved COM
comquestion
4 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.
  • T Offline
    T Offline
    tpndtbk
    wrote on last edited by
    #1

    Hi , Does anyone know if the functions in COM interface can be overloaded or not? Thank you.

    T A 2 Replies Last reply
    0
    • T tpndtbk

      Hi , Does anyone know if the functions in COM interface can be overloaded or not? Thank you.

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      tpndtbk wrote: Does anyone know if the functions in COM interface can be overloaded or not? Nope It Not Possible,Actually Component Technology to Interlink Langauges and concept like Function overloading,Inheritance etc. cannot be found in every language. so that why Com developer has sacrfice many thing Good Programming Concepts to Create Component. ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      1 Reply Last reply
      0
      • T tpndtbk

        Hi , Does anyone know if the functions in COM interface can be overloaded or not? Thank you.

        A Offline
        A Offline
        Andy Hunter
        wrote on last edited by
        #3

        If you are looking at it from the client side then instead of trying to overload the com interface simply create an interface wrapper for the COM object in your client. Your code would then sit inbetween your main client and the COM interface. For info on interface wrappers look here[^]

        A 1 Reply Last reply
        0
        • A Andy Hunter

          If you are looking at it from the client side then instead of trying to overload the com interface simply create an interface wrapper for the COM object in your client. Your code would then sit inbetween your main client and the COM interface. For info on interface wrappers look here[^]

          A Offline
          A Offline
          Andy Hunter
          wrote on last edited by
          #4

          You could also take a look at aggregation and containment if you are trying to perform it from the server side. It is not necessarily that COM doesn't support good programming practice, the whole reason for the development of COM was to insulate the client from the details of implementation; thus implementation inheritance is out of the question since it requires too much detailed information over how the "insides" work. COM does support interface inheritance, which is developed through aggregation and containment. These tools allow you to specialize COM interfaces.

          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