Re: DLL:s and global variables
From: KLinZ (klinz_at_NOSPAMzenobitsSPAMNO.com.invalid)
Date: 10/25/03
- Next message: Gerry Quinn: "Re: Is open sourcing a good idea?"
- Previous message: Gerry Quinn: "Re: Is open sourcing a good idea?"
- In reply to: Kalle Rutanen: "DLL:s and global variables"
- Next in thread: Kalle Rutanen: "Re: DLL:s and global variables"
- Reply: Kalle Rutanen: "Re: DLL:s and global variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Oct 2003 11:47:05 +0200
In news:_irmb.75$Z_6.19@read3.inet.fi, Kalle Rutanen typed:
> It seems that a DLL has it's own copies of applications global
> variables. How do you use application's global variables in a DLL ?
What you is a thing called shared memory. Under win32 this is often
implemented as calls to CreateFileMapping() and MapViewOfFile(), do a search
on google for more details. People have done it before :-)
-- www.zenobits.com
- Next message: Gerry Quinn: "Re: Is open sourcing a good idea?"
- Previous message: Gerry Quinn: "Re: Is open sourcing a good idea?"
- In reply to: Kalle Rutanen: "DLL:s and global variables"
- Next in thread: Kalle Rutanen: "Re: DLL:s and global variables"
- Reply: Kalle Rutanen: "Re: DLL:s and global variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|