如何在C ++中的DLL和Windows应用程序之间交换数据?

时间:2019-07-29 07:16:47

标签: c++

我在dll和Windows应用程序之间交换数据时遇到问题。让我们来看一个例子。

假设我有2个Windows应用程序(Windows应用程序A,Windows应用程序B)。而且我有一个dll注入Windows应用程序A。

//在Windows应用程序B中

void main(){
  vector<int> vTest;
  vTest.push_back(5);
  vTest.push_back(7);
}

//在dll中注入了Windows应用程序A

DLLMainThread(){
  vector<int> readvTest = vTestFromWindowApplicationB; 
}

那么我该如何从Windows应用程序B中检索向量vTest的值?谢谢你....

0 个答案:

没有答案
相关问题