是否可以使用不同的进程访问相同的DLL [英] Is it possible to access a same DLL using different process

查看:89
本文介绍了是否可以使用不同的进程访问相同的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个EXE。

我在DLL中有一个数据集。

我正在与这个DLL共享这两个EXE。



当两个进程都在运行时,我是否能够访问同一个DLL。

I am having two EXE.
I am having a dataset in DLL.
I am sharing those two EXE with this DLL.

Will I be able to access this same DLL while both process are running.

推荐答案

DLL是同一台机器上的共享资源,可以在同一台机器上由多个进程使用。



但是如果您打算在两个进程之间共享数据,那么您需要进行通信将内存数据从一个传输到另一个的机制(可以是文件或数据库或网络数据包等)。
DLL's are shared resources on the same machine and can be used by multiple process on the same machine.

However if your intention is to share data between two processes then you need a communication mechanism in between to transfer the in memory data from one to the other (this can be a file or a database or network packets etc.).


这篇关于是否可以使用不同的进程访问相同的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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