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. Passing IDispatch pointer to C++

Passing IDispatch pointer to C++

Scheduled Pinned Locked Moved COM
c++questiongraphicshelptutorial
4 Posts 2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    How can I pass an IDispatch pointer into C++? My C++ method is expecting a of smart pointers (std::vector> ) to C++ objects. Since I am using a VB front-end, I pass a set of IDispatch pointers to ATL via the variant type. Now, I am stuck with a set of IDispatch pointers to the objects and I don't know how to pass them into C++. Any ideas? thanks, -shamus

    L H 2 Replies Last reply
    0
    • L Lost User

      How can I pass an IDispatch pointer into C++? My C++ method is expecting a of smart pointers (std::vector> ) to C++ objects. Since I am using a VB front-end, I pass a set of IDispatch pointers to ATL via the variant type. Now, I am stuck with a set of IDispatch pointers to the objects and I don't know how to pass them into C++. Any ideas? thanks, -shamus

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What do you mean pass them to C++? What do you plan to acheive with your objects?

      1 Reply Last reply
      0
      • L Lost User

        How can I pass an IDispatch pointer into C++? My C++ method is expecting a of smart pointers (std::vector> ) to C++ objects. Since I am using a VB front-end, I pass a set of IDispatch pointers to ATL via the variant type. Now, I am stuck with a set of IDispatch pointers to the objects and I don't know how to pass them into C++. Any ideas? thanks, -shamus

        H Offline
        H Offline
        Holger Persch
        wrote on last edited by
        #3

        You can use IDispatch* ,LPDISPATCH or IDispatchPtr (smart pointer created from import) to pass IDispatch pointers to your C++ methods. Kindest regards Holger Persch

        L 1 Reply Last reply
        0
        • H Holger Persch

          You can use IDispatch* ,LPDISPATCH or IDispatchPtr (smart pointer created from import) to pass IDispatch pointers to your C++ methods. Kindest regards Holger Persch

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I have created a procedure in my ATL Component which returns IDispatch * In VB Client Its also allocated to an object but at the end of VB function i got an error in VB Help me

          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