unresolved_external
unresolved_external

Reputation: 2018

DLL in multiple processes

I have a dll, which is loaded by the couple of processes. In that DLL source code I have an instance of global variable. Will this global variable be the same in all loaded processes ? Or will it be as the unique variable in each process ?

Upvotes: 1

Views: 156

Answers (1)

Bathsheba
Bathsheba

Reputation: 234875

It will be unique to each process, unless (i) you've written explicit code to share inter-process or (ii) are still using a 16 bit dll.

Upvotes: 2

Related Questions