🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #6838

DOS app <-> Windows app communication

#6838
From: Stanton Loh
Date: Wed, 14 Nov 1990 01:00
23 lines
1465 bytes
A windows programmer friend asked me to post this:

Microsoft Windows 3.0
---------------------

What I need to be able to do is run a DOS program in a DOS
window that communicates with my Windows program.  Data needs to
flow both ways.  I tried putting data in a file, and having both
programs check for the existence of the file, but my Windows DLL
made the disk thrash horribly while checking for the existence
of 4 files, due I suspect to Windows making all processes update
a directory before reading it.  The Bridge program sends
keystrokes to applications, so I know it can be done.  I tried
using EnumWindows to get the hWnd for the DOS session, then
sending it keystroke messages, but that did nothing (or beeped).
- Doug Stauffer

Thanks for any help,
==============================================================
|Stanton Loh               | u2zj@vax5.cit.cornell.edu       |
|Baker Lab, Cornell Univ   | u2zj@crnlvax5.BITNET            |
|Ithaca, NY 14853-1301     | stanton@chemres.tn.cornell.edu  |
==============================================================
Technical Details
Message-ID: <1990Nov13.210047.984@vax5.cit.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!cornell!vax5.cit.cornell.edu!u2zj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!cornell!vax5.cit.cornell.edu!u2zj
From: u2zj@vax5.cit.cornell.edu (Stanton Loh)
Newsgroups: comp.windows.ms
Subject: DOS app <-> Windows app communication
Message-ID: <1990Nov13.210047.984@vax5.cit.cornell.edu>
Date: 14 Nov 90 01:00:47 GMT
Distribution: comp
Lines: 23