Message-ID: <003101c10c5d$2f7b8300$cf5b8690@oemcomputer> From: "Ramesh Sajja" To: Cc: References: <9wz37.445$a04 DOT 1454 AT newsfeeds DOT bigpond DOT com> <2593-Fri13Jul2001165659+0300-eliz AT is DOT elta DOT co DOT il> Subject: Re: memory sharing Date: Sat, 14 Jul 2001 20:04:48 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Reply-To: djgpp AT delorie DOT com 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" Newsgroups: comp.os.msdos.djgpp To: "Ramesh Sajja" Cc: Sent: Friday, July 13, 2001 9:56 PM Subject: Re: memory sharing > > 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.