delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/09/06:34:55

From: Michael Goffioul <goffioul AT emic DOT ucl DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Sharing global variable
Date: Mon, 09 Jun 1997 09:58:40 +0200
Organization: EMIC - UCL
Lines: 26
Message-ID: <339BB7B0.2EAD@emic.ucl.ac.be>
NNTP-Posting-Host: ns2.emic.ucl.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

I'd like to know if it's possible for a called program (with "exec"
command) to access the same global variable as the calling program,
a sort of shared variable between 2 programs.

For example, if a static variable "a" is declared in a header file
included in 2 differents programs "prog1.exe" and "prog2.exe". If 
"prog1.exe" calls "prog2.exe", is it possible that prog2 uses the same
global variable than prog1 ?

Thanks.

Michael.

-- 
Michael Goffioul

EMIC - UCL
Batiment Maxwell
Place du Levant, 3
B-1348 Louvain-la-Neuve
Belgium

Tel.: +32 10 47 23 15
Fax.: +32 10 47 87 05

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019