delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/23/09:18:21

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DOS & Win95
Date: Wed, 23 Jul 1997 01:11:48 -0500
Organization: Spectrum Healthcare Services
Lines: 20
Message-ID: <33D5A0A4.F14E7CF0@a.crl.com>
References: <Pine DOT LNX DOT 3 DOT 95 DOT 970722164855 DOT 99A-100000 AT localhost>
NNTP-Posting-Host: a116018.stl1.as.crl.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alf Stockton wrote:
> 
> I have the need to communicate between a 32bit DOS program and a program
> running under native WIN95. I wish to pass data contained within a struct
> between the two processes.
> My thought was 1st to use a file ........ but this is too slow.
> Next thought was if I could allocate memory in one or other of the
> processes and pass a pointer to this memory, containing the struct, from
> one process to another.
> Problem is I don't know how to do this.
> Any help or suggestions would be gratefully accepted.

You can recompile your 32-bit DOS program with RSXNTDJ 1.3.1 + DJGPP
2.01.  The result is a Win32 program, and as such you can use the Win32
IPCs (memory mapped files, anonymous pipes, named pipes, winsock, DDE,
OLE, COM and DCOM, maybe even ActiveX :) ).

--
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


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