#re:streams in C++
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)