Mail Archives: djgpp/2001/07/14/08:12:06
Thank u Zaretskii, but the real problem is how do I pass the segment:offset
pair to the other program ?, Could u please give me a bit of code for this.
----- Original Message -----
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
To: "Ramesh Sajja" <sajjaramesh AT usa DOT net>
Cc: <djgpp AT delorie DOT com>
Sent: Friday, July 13, 2001 9:56 PM
Subject: Re: memory sharing
> > From: "Ramesh Sajja" <sajjaramesh AT usa DOT net>
> > 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.
- Raw text -