How can I use two monitors under Microsoft C 5.1?
Bill "Mr. Fun" Foote
foote at miro.Berkeley.EDU
Sun May 28 13:27:41 AEST 1989
I have two monitors hooked up to my PC (one is a CGA, the other
a Hercules-compatable monochrome adaptor). I'd like to be able
to write an application that does text input/output on one screen,
while generating graphics on the other. Is there some way that I
can fool Microsoft C 5.1 into letting me do this? I've tried this
code (running the program after doing a "mode co80"):
_setvideomode(some graphics mode);
draw some lines;
system("mode mono");
draw some more lines;
printf("This is where the problem is\n");
This works, i.e. the graphics go to the CGA, and the text goes to the
MGA, _BUT_ the sync to the color monitor get all screwed up as soon as
I start sending text to stdout. I assume that the graphics library
routines are intecepting my text output and trying to put them on the
CGA screen somehow.
I've tried a couple of variations on this scheme, with no luck.
Currently I'm using my own graphics routines that directly access
the hardware, but it would sure be nice if I could use MSC's nice
library routines.
Any suggestions would be appreciated.
Thanks in advance,
Bill Foote
foote at miro.Berkeley.EDU
...!uunet!ucbvax!miro!foote
More information about the Comp.lang.c
mailing list