Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想实现一个由两个过程组成的解决方案(VS2010): - 一个“实时图像处理”过程,在 C++ 非托管中使用 OpenCV。- 和一个 Windows GUI 进程,友好且好看,在 C# 中管理。
C++ 进程必须是 FAST(高优先级性能),而 C# 只是一个好看的窗口显示(低优先级性能)......这个想法是在进程之间共享必要的数据......
要共享的数据可能是一些预览实时视频、一些图像和一些值(图像处理的结果)。
如果有人有一些代码行可以分享或帮助,我将不胜感激..
在 Windows 中跨进程共享内存的典型方法是使用内存映射文件。当然,您还需要.NET API。