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. How to call C# function from unmanaged C++ code.?

How to call C# function from unmanaged C++ code.?

Scheduled Pinned Locked Moved COM
csharpc++helptutorialquestion
2 Posts 2 Posters 2 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
    deadlyabbas
    wrote on last edited by
    #1

    Hi, I need to call a function written in C# from the unmanaged code. The code from where I have to call the function is purely written in VC++ and it come in the unmaged part of the solution code. Most of the solution is written in C# .NET 3.5. Please help me out. Thanks In Advance Abbas

    S 1 Reply Last reply
    0
    • D deadlyabbas

      Hi, I need to call a function written in C# from the unmanaged code. The code from where I have to call the function is purely written in VC++ and it come in the unmaged part of the solution code. Most of the solution is written in C# .NET 3.5. Please help me out. Thanks In Advance Abbas

      S Offline
      S Offline
      Sauro Viti
      wrote on last edited by
      #2

      Read Unmanaged to Managed calls (C++ to C#) without Regasm[^]; it seems to be just what you are looking for... Cheers, Sauro

      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