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. Managed C++/CLI
  4. How to use Callback interface from unmanaged code in Managed C++

How to use Callback interface from unmanaged code in Managed C++

Scheduled Pinned Locked Moved Managed C++/CLI
c++comtutorial
4 Posts 4 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.
  • D Offline
    D Offline
    dadagiri123
    wrote on last edited by
    #1

    How to get callback in managed C++/CLI from unmanaged code, my managed code class has implemented unmanaged COM interface ,how shall i do that

    A B 2 Replies Last reply
    0
    • D dadagiri123

      How to get callback in managed C++/CLI from unmanaged code, my managed code class has implemented unmanaged COM interface ,how shall i do that

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      i think this will help http://blogs.microsoft.co.il/blogs/alon/archive/2007/05/29/Native-Callback.aspx[^] Величие не Бога может быть недооценена.

      L 1 Reply Last reply
      0
      • A Adam Roderick J

        i think this will help http://blogs.microsoft.co.il/blogs/alon/archive/2007/05/29/Native-Callback.aspx[^] Величие не Бога может быть недооценена.

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

        Your link is not clickable.

        Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

        1 Reply Last reply
        0
        • D dadagiri123

          How to get callback in managed C++/CLI from unmanaged code, my managed code class has implemented unmanaged COM interface ,how shall i do that

          B Offline
          B Offline
          Bob Ciora
          wrote on last edited by
          #4

          Just pull out the useful part from the link. http://blogs.microsoft.c.il/blogs/alon/archive/2007/05/29/Native-Callback.aspx I genrally use method #4 because many of my callbacks are in the form of interface classes (e.g. "ICallback"). I create a "bridge" class (unmanaged class built in a managed dll) with an implementation of the unmanaged callback that marshals any parameters to the managed world, then calls a similar method on a gcroot'ed handle to a managed interface.

          Bob Ciora

          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