Original Post
Okay, i have a dll calls MyDll.dll and 2 programs, MyProg1.exe and MyProg2.exe. both the programs are being run at the same time, and both need to use the lib.
now, in MyDll.dll there''s an internal int called "int MyVar;", an exported function called "void SetVar(int Value)" and another exp. function called "int GetVar()".
Now, when each program calls LoadLibrary, will they get their own "copy" of the DLL, or will it be made global (so they share it)? In other words, does each program get their own MyVar or do they have to share it, meaning it could be changed without the other program knowing about it??
Any help appreciated
MENTAL