Search code examples
c#c++ipcinterprocess

How to send float numbers from a C# application to a C++ application?


I have two applications:

1.: C# GUI application written in VisualStudio 2013.

2.: C++ GUI application written in VisualStudio 2013.

I would like to send float numbers from application #1 to application #2.

(In other words: If the C# app. calculates a float number (e.g.: 12.32) then I would like to see this number on the standard output written by the C++ application.)

What is the easiest way to accomplish this? Is there any Windows API, or common-memory-address-thing, etc. to accomplish this?


Solution

  • Hmmm... There's some way's to do it (what i know) :

    If i want do this on GUI Applcation i'll choose P\Invoke but if i want do something background i'll choose IPC Channels or Shared Memory (IPC Channels is better)