How to share data between a C ++ application and a C # user without files?

I have a C ++ application with data that needs to be shared with a C # application. I am currently transferring data through files, but with the speed and amount of data that become a problem, I would like to find a way to share data through memory.

At best, I start with an intermediate programmer, and so far I have heard of two methods that can help me with this: Programming sockets and files with memory.

So my questions are the best way to do this? (yes, speed is a factor)

and any information or links to information that can help me in my research and understanding of the method you offer will be greatly appreciated.

Thanks,

+3
source share
7 answers

You can use named pipes for interprocess communication. I haven't used it from C ++ land yet, though ..

+7
source

Sockets, IMO. It is standard, fast (especially if you work on the same computer) and is very flexible. Memory mapped files I'm not sure if it is supported by C #, but I could be wrong.

+5
source

, , . . COM Windows .

+3
+2

. . , ( ) ++. ++ , /, /clr.

/clr .net, .net. ++ . , - .

, .

-, , : http://blogs.microsoft.co.il/blogs/sasha/archive/2008/02/16/net-to-c-bridge.aspx

+2

, . , ( , ).

- , , loopback- kaput ( ip ), . , , , , .

0

#, , , -, P/Invoke.

0
source

All Articles