home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5250 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.8 KB  |  72 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: roger@rkhost.demon.co.uk (Roger Kinkead)
  3. Path: sparky!uunet!pipex!demon!rkhost.demon.co.uk!roger
  4. Subject: DOS <-> Windows IPC ?
  5. Distribution: world
  6. Organization: Home
  7. Reply-To: roger@rkhost.demon.co.uk
  8. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  9. Lines: 58
  10. Date: Thu, 21 Jan 1993 23:06:17 +0000
  11. Message-ID: <727657577snz@rkhost.demon.co.uk>
  12. Sender: usenet@demon.co.uk
  13.  
  14.  
  15. Hi,
  16.  
  17.  
  18. Is it possible for Inter-Process-Communications to take place between a
  19. DOS task and my Windows program?
  20.  
  21. What I would like to do is this....
  22.  
  23. Run a DOS application in the background which will accept commands from (and
  24. return responses to) my Windows program. The interface need only be a
  25. couple of character streams - just enough for me to pass a text string to
  26. the DOS app. and for the DOS app. to respond in a similar manner.
  27.  
  28. The DOS application will in effect be a small communications system, which 
  29. will accept commands from the Windows application in a similar manner as one
  30. might enter them at the keyboard.
  31. I reckon this is the best approach to get some decent time-slicing under
  32. windows to allow the communications system to operate successfully. And, to be
  33. honest it means I can use 99% of the code that will be running at the other
  34. end of the line in a standard DOS environment.
  35. (The reason why decent multi-tasking is important is that some of the commands
  36. will begin exchange of files and data with a range of protocols, protocols
  37. which I would like to use 'as-is' from my DOS code if possible). 
  38.  
  39. Another reason is that it should be possible (when the time comes ) for simple
  40. replacement of the DOS task to provide communications over  X.25, ethernet,etc.
  41. because the IPC is just a couple of text streams.
  42.  
  43. Is there any 'standard' method of acheiving such DOS<->Windows IPC?
  44.  
  45. If there is not, then could I acheive this interface my grabbing a software
  46. interrupt of my choice and writing a TSR (Terminate and Stay Ropey) to
  47. provide a couple of calls to buffer the messages between apps?
  48. Is this as straightforward as I hope it is .... or does Windows Enhanced Mode
  49. cause any problems in calling real-mode software interrupts?
  50.  
  51.  
  52. I apologise for the length of this message ... I'm afraid I'm not very good
  53. as explaining myself consisely (or at all maybe!).
  54.  
  55. If anyone could offer my any assistance whatsoever, I would be most grateful.
  56.  
  57. Many Thanks for taking the time to read this.
  58.  
  59. Regards,
  60.  
  61.  
  62. Roger
  63. --
  64.  
  65. -----------------------------------------------------------------------------
  66. | Roger Kinkead                               |  roger@rkhost.demon.co.uk   |
  67. |                                             |                             |
  68. | "Moorcroft", 27 Antrim Road, Lisburn,       |                             |
  69. |  County Antrim, Northern Ireland, BT28 3ED  |                             |
  70. -----------------------------------------------------------------------------
  71.  
  72.