Passing data between C++ (MFC) app and C#

前端 未结 9 1375
一向
一向 2020-12-31 17:45

We have a monolithic MFC GUI app that is nearing the end of it\'s life in C++. We are planning to build new functionality in C# and pass data between each app.

Quest

9条回答
  •  -上瘾入骨i
    2020-12-31 18:19

    Assuming you have the source to the legacy app, see if you can't compile all the "workhorse" code as a DLL, then invoke the individual functions/windows from there. Once you have that working, you can simply write Managed C++ wrappers around the functions you need, and invoke those from your C# code. The whole process can take less than a day, if you're lucky.

提交回复
热议问题