home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- From: roger@rkhost.demon.co.uk (Roger Kinkead)
- Path: sparky!uunet!pipex!demon!rkhost.demon.co.uk!roger
- Subject: DOS <-> Windows IPC ?
- Distribution: world
- Organization: Home
- Reply-To: roger@rkhost.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 58
- Date: Thu, 21 Jan 1993 23:06:17 +0000
- Message-ID: <727657577snz@rkhost.demon.co.uk>
- Sender: usenet@demon.co.uk
-
-
- Hi,
-
-
- Is it possible for Inter-Process-Communications to take place between a
- DOS task and my Windows program?
-
- What I would like to do is this....
-
- Run a DOS application in the background which will accept commands from (and
- return responses to) my Windows program. The interface need only be a
- couple of character streams - just enough for me to pass a text string to
- the DOS app. and for the DOS app. to respond in a similar manner.
-
- The DOS application will in effect be a small communications system, which
- will accept commands from the Windows application in a similar manner as one
- might enter them at the keyboard.
- I reckon this is the best approach to get some decent time-slicing under
- windows to allow the communications system to operate successfully. And, to be
- honest it means I can use 99% of the code that will be running at the other
- end of the line in a standard DOS environment.
- (The reason why decent multi-tasking is important is that some of the commands
- will begin exchange of files and data with a range of protocols, protocols
- which I would like to use 'as-is' from my DOS code if possible).
-
- Another reason is that it should be possible (when the time comes ) for simple
- replacement of the DOS task to provide communications over X.25, ethernet,etc.
- because the IPC is just a couple of text streams.
-
- Is there any 'standard' method of acheiving such DOS<->Windows IPC?
-
- If there is not, then could I acheive this interface my grabbing a software
- interrupt of my choice and writing a TSR (Terminate and Stay Ropey) to
- provide a couple of calls to buffer the messages between apps?
- Is this as straightforward as I hope it is .... or does Windows Enhanced Mode
- cause any problems in calling real-mode software interrupts?
-
-
- I apologise for the length of this message ... I'm afraid I'm not very good
- as explaining myself consisely (or at all maybe!).
-
- If anyone could offer my any assistance whatsoever, I would be most grateful.
-
- Many Thanks for taking the time to read this.
-
- Regards,
-
-
- Roger
- --
-
- -----------------------------------------------------------------------------
- | Roger Kinkead | roger@rkhost.demon.co.uk |
- | | |
- | "Moorcroft", 27 Antrim Road, Lisburn, | |
- | County Antrim, Northern Ireland, BT28 3ED | |
- -----------------------------------------------------------------------------
-
-