whothathandel
Programmer
I wrote an application and a DLL that is called by it in C (Visual Studio 6). The application and the DLL each declare a global variable, but when the code of the application is processed, only the applications global variable is visible, and while in the DLL only the Dll's global variable is there.
From what I've found in the documentation, it ought to work when I declare these variables "__declspec(dllexport)" on one side and "__declspec(dllimport)" on the other, but it doesn't.
What do I have to do to get access to both variables at the same time? Have you sample code that works?
From what I've found in the documentation, it ought to work when I declare these variables "__declspec(dllexport)" on one side and "__declspec(dllimport)" on the other, but it doesn't.
What do I have to do to get access to both variables at the same time? Have you sample code that works?