Re: Global variable inside a DLL



But that what op want IMHO.
Sometime we need simple but unsecure decision even in real systems( like
critical mission embedded system - no one can entrude it and all space is
our realm )
Arkady

"Skywing" <skywing_NO_SPAM_@xxxxxxxxxxxxxxxxxxx> wrote in message
news:Oi%23c2sjiGHA.4512@xxxxxxxxxxxxxxxxxxxxxxx
Again, this method for sharing memory is deprecated and insecure because
it will allow everyone (even untrusted users) to write to that portion of
your address space. Use a file mapping object instead.

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:e7PiomjiGHA.4368@xxxxxxxxxxxxxxxxxxxxxxx
No, you need to initiate it in shared data segment for that with #pragma
data_seg("name")
Arkady

"Harish" <Harish@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:62620CCB-3E89-4AFD-9477-16D3E4C56E56@xxxxxxxxxxxxxxxx
Is the global variable is defined inside a DLL common to all the clients
that
access the DLL?







.