If I declare a variable in the data? of A dll File, Then on calling a procedure in this dll file by a calling program this variable aquired a value. (the calling program does not see this variable) The Question is: Is the variable still has this value on next call by the same calling program,or by a second calling program. Thanks For ALL.
Data saved and recalled in he same process will be the same data. Data saved by one process will NOT be seen by another process. Each process gets it's own .data segment. That's also true for dll's.
You can use shared data in .data? section. Link your dll with key /SECTION:.bss, S.
Thanks Ernie & vKim.