delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/14/08:12:06

Message-ID: <003101c10c5d$2f7b8300$cf5b8690@oemcomputer>
From: "Ramesh Sajja" <sajjaramesh AT usa DOT net>
To: <djgpp AT delorie DOT com>
Cc: <eliz AT is DOT elta DOT co DOT il>
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
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" <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 -


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