Using C++ output streams with windows in OWL II.

Here is some code that shows how to use a standard C++ ostream,  like cout, and direct the output of the 
stream to a window, specifically a TEDit or derived class.

The files TESTRM.CPP and TESTRM.H contain the classes for defining TEOstrStream. TEOstrStream is 
the class that is 'visible' to the user, all the other classes defined are for support purposes and not used 
directly.

I am not going to get into great detail about the C++ stream classes work, instead I'll just concentrate on 
TEOstrStream itself, and on the method TmyStrStreamBuf::outBuf().

TEOstrStream needs to have a window object that supports text output associated with it. With OWL II this 
object is a TEditThing (a TeditThing is really a TEdit, but the define makes porting easier). The 
TEditThing is associated by passing it as a constructor argument, or by calling the method AttachDoc(). If 
the TEOstrStream is used without a TEditThing, than output will be lost. Make sure you call DetachDoc() 
before deleting the TeditThing, otherwise the system might crash when text is flushed to a window that no 
longer exists

TmyStrStreamBuf::outBuf() this method takes the text in the internal buffer, converts it and then passes the 
text to Tedit::Insert(char *). This function will have to be modified if you are not using Tedit or porting to 
another platform.
-----
The file T1APP.CP shows how to use the stream in an application. The About Menu item will output some 
text using the stream.
							Neal Katz
							cserve 70715,236

P.S. Gratuities and job offers welcome.
============================================================
Legal Stuff:
	You are free to use this code however you want with the following provisions
1) When redistributing the source code you include this document and the comments with my name in the 
code.
2) When incorporated into a commercial software product, you give me a credit in the manual and/or the 
about box.

