πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9588

Re: Access to a global variable in a dll

#9588
From: Sam
Date: Mon, 21 Jun 2004 20:31
27 lines
1796 bytes
Does someone has a sample ?

Sam
"Alan Bellingham" <alanb@episys.com> a οΏ½crit dans le message de
news:r44ed0dhca6fdfj9hr6dkin350f146do8d@4ax.com...
> "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: <40d74594$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newspeer1.stngva01.us.to.verio.net!news.verio.net!newsfeed.cwix.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40d70f65$1@newsgroups.borland.com> <r44ed0dhca6fdfj9hr6dkin350f146do8d@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,a265033192cc429d
X-Google-Attributes: gid10cc67,public
Reply-To: "Sam" <skneife3@wanadoo.fr>
From: "Sam" <skneife3@wanadoo.fr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40d70f65$1@newsgroups.borland.com> <r44ed0dhca6fdfj9hr6dkin350f146do8d@4ax.com>
Subject: Re: Access to a global variable in a dll
Date: Mon, 21 Jun 2004 22:31:16 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 80.11.146.137
Message-ID: <40d74594$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087849876 80.11.146.137 (21 Jun 2004 13:31:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newspeer1.stngva01.us.to.verio.net!news.verio.net!newsfeed.cwix.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail