在两个应用程序间共享内存 [英] sharing memory between two applications

查看:220
本文介绍了在两个应用程序间共享内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个不同的Windows应用程序(两个不同的人写代码)。一个是C ++写的,另一个是C#。我需要一些方法如何在它们之间共享RAM中的数据。一个必须写入数据,另一个只读取写入的数据。我应该使用什么使它最有效,最快?
谢谢。

I have two different windows applications (two different people writing the code). One is Written in C++ and another one is in C#. I need some way how to share data in RAM between them. One must writes data and another one just reads the written data. What should I use to make it most effective and fast? Thanks.

推荐答案

您可以使用内存映射文件

这里是一篇描述如何使用它们的MSDN文章。

Here is an MSDN article describing how to use them.

这篇关于在两个应用程序间共享内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆