CompuServe Messages

#re:streams in C++

    19-Dec-94 13:44:52
Fm: Shraddhan 70374,754
To: JAMES BLACK 75242,1203
James, Is this the kind of thing you had in mind: /* First open your window: */ Window = OpenWindow(… etc …) or OpenWindowTagList( … etc…) /* Now attach a console to it: sprintf(Buffer,"CON://///WINDOW%lx", Window); if(! (Con_FileHandle = Open( Buffer, MODE_OLDFILE)) ) printf("Can't open Console handler."); /* Now you can use Con_FileHandle like any other file handle */ (This doesn't work with WB 1.3 or earlier, unless you use ConMan or similar.) Regards, Shraddhan (via AP from Hertfordshire, England)