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

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

问题描述

我有两个不同的 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.

推荐答案

您可以使用 内存映射文件.

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

Here is an article describing how to use them.

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

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