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. Managed c++ Newbie Question on linking Unmanged C++ to c#

Managed c++ Newbie Question on linking Unmanged C++ to c#

Scheduled Pinned Locked Moved Managed C++/CLI
questioncsharpc++comtools
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.
  • T Offline
    T Offline
    Tom Thorp
    wrote on last edited by
    #1

    I'm somewhat new to managed c++, so I would like a little clarification. We have a large codebase of unmanaged c++ that runs as a plugin in another application (VS2002 rocks/NOT). The plugin world has it own coding rules and libraries that we have to use. We are in the process of writing about 300K lines of code and are looking at c# just for the productivity enhancements. Also, they do not all have to run in the plugin. My question is, is it possible with managed C++ to create a COM object that will link some these C# DLL's with are existing plugin code? This would be a huge help if it is not hard. Thanks in advance. Tom

    C 1 Reply Last reply
    0
    • T Tom Thorp

      I'm somewhat new to managed c++, so I would like a little clarification. We have a large codebase of unmanaged c++ that runs as a plugin in another application (VS2002 rocks/NOT). The plugin world has it own coding rules and libraries that we have to use. We are in the process of writing about 300K lines of code and are looking at c# just for the productivity enhancements. Also, they do not all have to run in the plugin. My question is, is it possible with managed C++ to create a COM object that will link some these C# DLL's with are existing plugin code? This would be a huge help if it is not hard. Thanks in advance. Tom

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You don't need C++/CLI to write a COM object, but if you use C++/CLI, you don't need to use COM, you can use .NET to get finer grained access to the C# objects you've written.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      T 1 Reply Last reply
      0
      • C Christian Graus

        You don't need C++/CLI to write a COM object, but if you use C++/CLI, you don't need to use COM, you can use .NET to get finer grained access to the C# objects you've written.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        T Offline
        T Offline
        Tom Thorp
        wrote on last edited by
        #3

        Just to clarify, I can use c++/CLI to link my existing base of unmanaged code developed with VS2002?

        C 1 Reply Last reply
        0
        • T Tom Thorp

          Just to clarify, I can use c++/CLI to link my existing base of unmanaged code developed with VS2002?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You'd want to modify your existing app to also use C++/CLI, then, yes. That doesn't mean changing all your code, you just add C++/CLI support.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          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