Article View: borland.public.cppbuilder.nativeapi
Article #9584Re: Access to a global variable in a dll
From: Alan Bellingham
Date: Mon, 21 Jun 2004 16:47
Date: Mon, 21 Jun 2004 16:47
21 lines
1484 bytes
1484 bytes
"sam" <skneife3@wanadoo.fr> wrote: >My goal is to access a global variable inside a Dll with the same value from >2 different executables. [snip] >In fact the contains of g_IntegerData is not shared between the 2 >executables. Correct. Each process gets its own copy of the DLL and all its data. This was different under 16-bit Windows, BTW. >So what is the way for sharing data between processes ? You need to use shared memory - look in the Windows API help files under Shared Memory. Alan Bellingham -- ACCU Conference 2005 - 20-23 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID:
<r44ed0dhca6fdfj9hr6dkin350f146do8d@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40d70f65$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a265033192cc429d X-Google-Attributes: gid10cc67,public From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Access to a global variable in a dll Date: Mon, 21 Jun 2004 17:47:04 +0100 Reply-To: alanb@episys.com Message-ID: <r44ed0dhca6fdfj9hr6dkin350f146do8d@4ax.com> References: <40d70f65$1@newsgroups.borland.com> X-Newsreader: Forte Agent 2.0/32.646 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.130 X-Trace: newsgroups.borland.com 1087836423 193.129.251.130 (21 Jun 2004 09:47:03 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail