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. C / C++ / MFC
  4. Integrating c# code in vc++.net

Integrating c# code in vc++.net

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++question
3 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.
  • A Offline
    A Offline
    Ashraj1982
    wrote on last edited by
    #1

    Hi, Is it possible to integrate the module developed in c#.net in vc++.net? If yes, then please let me know how it is done and using what? Archana Raj

    M 1 Reply Last reply
    0
    • A Ashraj1982

      Hi, Is it possible to integrate the module developed in c#.net in vc++.net? If yes, then please let me know how it is done and using what? Archana Raj

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      _FYI: Going forward Please Post all C++/CLI/Managed C++ queries under "(Managed) C++/CLI" forum. This is not a .Net forum._ Hope your C# module is an assebly/dll and not an exe/application. If it is an assembly then you can use #using to include the C# dll into your code. Then use the namespace declaration and create the class instance. declaration part: #using <csharpassebly.dll> using namespace csharpassebly::mycomponents;class instantiation: CMyCSharpClass* objCMyCSharpClass = gcnew CMyCSharpClass(); objCMyCSharpClass->method1(); If you c# module is an exe/application, then it is a diffrent story: use System.Diagnostic.Process class to invoke the process. cheers...milton.

      A 1 Reply Last reply
      0
      • M Milton Karimbekallil

        _FYI: Going forward Please Post all C++/CLI/Managed C++ queries under "(Managed) C++/CLI" forum. This is not a .Net forum._ Hope your C# module is an assebly/dll and not an exe/application. If it is an assembly then you can use #using to include the C# dll into your code. Then use the namespace declaration and create the class instance. declaration part: #using <csharpassebly.dll> using namespace csharpassebly::mycomponents;class instantiation: CMyCSharpClass* objCMyCSharpClass = gcnew CMyCSharpClass(); objCMyCSharpClass->method1(); If you c# module is an exe/application, then it is a diffrent story: use System.Diagnostic.Process class to invoke the process. cheers...milton.

        A Offline
        A Offline
        Ashraj1982
        wrote on last edited by
        #3

        Thanks Milton :) Mine was a .EXE and i could get that application in .net by creating the process using System.Diagnostic.Process. can you tell me the way to creat a DLL for the existing vc++ application? Thanks and regards

        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