VBA calling DLL function: how can I make it re-entry?

D

dan guo

Hi
I created a DLL which contains two DLL functions in VC++.
The first DLL function has defined a global variable,
which is a handle of an object. This object is created
when the first DLL fuction is called.

The second DLL function wants to access the global object
created by the first DLL function.

However, when I call the 2nd DLL function in Excel/VBA,
it somehow created a totally seprate instance which does
not find the global object created by the 1st DLL
function.

How can I fix this problem?

Thank you,
Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top