Date: Fri, 13 Jul 2001 16:56:59 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Ramesh Sajja" Message-Id: <2593-Fri13Jul2001165659+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <9wz37.445$a04.1454@newsfeeds.bigpond.com> (sajjaramesh@usa.net) Subject: Re: memory sharing References: <9wz37.445$a04 DOT 1454 AT newsfeeds DOT bigpond DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Ramesh Sajja" > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 13 Jul 2001 18:01:38 +0800 > > I'm a new user to the djgpp & c programming. could any one please tell me > how to share memory between two djgpp programs. basically I want to pass a > struct pointer from say prog1 to prog2, sothat prog2 can use that structure > data. One easy way is to put the data into conventional memory, and then pass the segment:offset pair to the other program. Access to conventional memory is possible with the dosmemget and dosmemput library functions.