home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12863 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.7 KB

  1. Path: sparky!uunet!mcsun!uknet!axion!micromuse!adam@micromuse.co.uk
  2. From: adam@micromuse.co.uk (Adam Kerrison)
  3. Newsgroups: comp.lang.c++
  4. Subject: Stream classes and Inheritance
  5. Message-ID: <BtJ5wE.33y@micromuse.co.uk>
  6. Date: 25 Aug 92 08:21:49 GMT
  7. Sender: news@micromuse.co.uk
  8. Reply-To: adam@micromuse.co.uk
  9. Organization: MicroMuse Ltd, London, UK
  10. Lines: 30
  11. Nntp-Posting-Host: zaphod
  12.  
  13. Hello there,
  14.  
  15. I am a bit of a C++ novice. I have developed some applications in C++ but
  16. nothing very involved. I am now  looking at developing a VERY simple
  17. windowing system for DOS. I am not trying to emulate Windows or Desqview but
  18. I am looking at something which gives me output (and possibly input) into 
  19. several text windows.
  20.  
  21. My idea so for is to use the ostream class and derive a class from it. This 
  22. class would handle output into a window. Thus I can then assign cout 
  23. (or cerr or clog) to one of my window classes and get output into windows - 
  24. does this make sense ???
  25.  
  26. My question is - which functions in the ostream classes handle the output of
  27. characters from the internal buffer to the screen ? Obviously, to get the effect
  28. I want I will have to overload these functions.
  29.  
  30. If anybody has any ideas on this please mail me at the address below as I
  31. don't get chance to read this newsgroup all that much ( too busy :-( )
  32.  
  33. Thanks in advance
  34.  
  35. Adam
  36. ---
  37. ==========================================================================
  38. Adam Kerrison                  | Phone : +44 71 352 7774
  39. Technical Support              | Fax   : +44 71 351 7834
  40. MicroMuse Ltd                  | E-mail: adam@micromuse.co.uk
  41. London                         | 
  42. SW10 0RN                       | ==========================================================================
  43.