We have a monolithic MFC GUI application that is nearing the end of its life in C ++. We plan to create new features in C # and transfer data between each application.
Question: what is the best way to transfer data between C ++ and C #?
Notes:
Both ends will have a GUI and probably only need to pass simple data, such as Id, and perhaps have a mechanism where it tells the other application which process / functionality to use.
For example, one of the applications will be a CRM system in C #, which, when a line in the grid is double-clicked, will pass, say, clientId and a message to open this client in the client form of the MFC application.
I did a bit of research, maybe the parameters are Windows Messaging, Memory Mapping, Named Pipes, or something like Windows Sockets. At this point, we tend to Named Pipes, but we will greatly appreciate other advice or advice or other people's experience.
c ++ c # ipc
Jamesugrue
source share