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 we get object size from the Interface pointer?

Can we get object size from the Interface pointer?

Scheduled Pinned Locked Moved COM
questionlearning
5 Posts 5 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.
  • M Offline
    M Offline
    Mahesh Kulkarni
    wrote on last edited by
    #1

    How can we determine the sizeof object from the interface pointer?

    The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

    R S V 3 Replies Last reply
    0
    • M Mahesh Kulkarni

      How can we determine the sizeof object from the interface pointer?

      The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

      R Offline
      R Offline
      Roger Stoltz
      wrote on last edited by
      #2

      No, not unless the interface in question exposes a method for it. An interface pointer is just what it says - a pointer.

      "It's supposed to be hard, otherwise anybody could do it!" - selfquote
      "High speed never compensates for wrong direction!" - unknown

      1 Reply Last reply
      0
      • M Mahesh Kulkarni

        How can we determine the sizeof object from the interface pointer?

        The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        You don't. What's more, if you want to you're misunderstanding COM.

        Steve

        L 1 Reply Last reply
        0
        • S Stephen Hewitt

          You don't. What's more, if you want to you're misunderstanding COM.

          Steve

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Stephen Hewitt wrote:

          What's more, if you want to your misunderstanding COM.

          Nice. Can you tell that to the guy in my thread just below? ;)

          1 Reply Last reply
          0
          • M Mahesh Kulkarni

            How can we determine the sizeof object from the interface pointer?

            The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

            V Offline
            V Offline
            Vi2
            wrote on last edited by
            #5

            Sometimes there is no object behind the interface pointer at all, only the set of functions.

            With best wishes, Vita

            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