首先在WIN32 dll裡面宣告一個struct
struct abc
{ public:
int a;
int b;
};
.......
..
extern ”C” __declspec(dllexport) funtion
{
...
abc .a =10;
abc .b= 15;
}
****************************************
我希望別的程式用我做的DLL 只要宣告相同的 struct 就可以使用
只是在exe檔,宣告一樣的 struct , 抓到都會是空值 我dll要加什麼才能讓 abc .a 抓到直接就是10
**************************************** 感謝大家的回答