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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Invoking .NET from Native C

Invoking .NET from Native C

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpc++help
2 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.
  • N Offline
    N Offline
    novicedude
    wrote on last edited by
    #1

    Hi All, I am a newbie to .NET and have a possibly simple doubt. How can I invoke .NET functionality from C code? Something like reverse JNI. Thanks in advance for the help.

    M 1 Reply Last reply
    0
    • N novicedude

      Hi All, I am a newbie to .NET and have a possibly simple doubt. How can I invoke .NET functionality from C code? Something like reverse JNI. Thanks in advance for the help.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Either: Register your .NET code for COM Interop, then invoke it through COM. This is the easier method. Or: Use the .NET hosting interfaces to load the CLR into your process, then load the appropriate .NET code. This is the hard way. For .NET 1.1, see C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\docs\Hosting Interfaces.doc. For .NET 2.0, see 'Hosting Interfaces for .NET Framework version 2.0' in MSDN Library, or online here[^].

      Stability. What an interesting concept. -- Chris Maunder

      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