Article:
  Introduction to Managed C++
Subject:   how to call a C# function in MC++
Date:   2003-03-13 07:10:50
From:   anonymous2
Hi Sam,


Thanks for your article. I appreciate you sharing your knowledge about MC++ with us. After reading this first artile in the series, I still have a question in mind. Let's say I have an existing unmanaged C++ program (originally written in Visual C++ 6.0) and now I have a C# GUI for this program. I want the C++ code to simply call a function in the C# GUI to start the entire interface. I did realize that the unmanaged C++ is NOT going to be able to "talk" to C# directly unless I port the unmanaged version to a MC++. Or the other alternative is to port the unmanaged C++ to a COM (which from what I heard, is a royal pain!) So, my question is, how do I make the MC++ code I will generate call a function (say SomeFunc()) in C#?


Thank you so much for your help!

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • how to call a C# function in MC++
    2003-09-26 15:37:11  anonymous2 [View]

    Hi!

    I have also same problem to solv!

    I need a way to to call C# methods from C/C++ code
    If it is Managed C++ doesn't matter.

    I am responsible for a C/C++ application which should in some future be able to communicate with C#. How to achive this ???
    • how to call a C# function in MC++
      2006-06-14 22:47:06  antoine.yassa [View]

      did you find how to do it?
      Do you have source code?
      mail : antoine.yassa@gmail.com