Board index » delphi » Problem running BGIDEMO.PAS under Windows NT 4.0

Problem running BGIDEMO.PAS under Windows NT 4.0

I am trying to run the Borland Pascal 7.0 graphics demo program,
BGIDEMO.PAS, under Windows NT 4.0. I am encountering two problems.

1) The graphics side of things works, although about the lower 1/3 of the
screen appears to be truncated. The mode is identified as VGA, with
640x480 pixel resolution, which is correct as far as I can tell. I am
using a Matrox MGA graphics card.

2) When switching to text mode from graphics mode, the screen goes blank
and no text is displayed, even though some is written to the screen. The
program switches back to graphics mode without problems, and the
remaining graphics screens are displayed correctly.

The above program worked fine under MS-DOS, Windows 3.1, Windows 95 and
Windows 98 (and I think Windows NT 3.5).

Can anyone suggest a fix to the problems that I am experiencing under
Windows NT 4.0?

Any suggestions are most welcome, as I have an application that regularly
requires switching between text and graphics mode, and then back to text
mode. On the first switch back to text mode, the text is no longer
visible, and never reappears when switched back to text mode at other
times. The application seems to work just fine, apart from the lack of
text display.

Note that the problem occurs irrespective of whether I just use the
RestoreCRTmode procedure, or I do call to CloseGraph with a subsequent
reinitialisation of the graphics mode using InitGraph.

Is there a fix to the graphics runtime library that will get rid of this
problem?

Witold
E-mail: witwald...@optusnet.com.au
Remove XE1 if e-mailing.
Send spam to ab...@whitehouse.gov

 

Re:Problem running BGIDEMO.PAS under Windows NT 4.0


Quote
Witold wrote:
> I am trying to run the Borland Pascal 7.0 graphics demo program,
> BGIDEMO.PAS, under Windows NT 4.0. I am encountering two problems.

> 1) The graphics side of things works, although about the lower 1/3 of the
> screen appears to be truncated. The mode is identified as VGA, with
> 640x480 pixel resolution, which is correct as far as I can tell. I am
> using a Matrox MGA graphics card.

> 2) When switching to text mode from graphics mode, the screen goes blank
> and no text is displayed, even though some is written to the screen. The
> program switches back to graphics mode without problems, and the
> remaining graphics screens are displayed correctly.

> The above program worked fine under MS-DOS, Windows 3.1, Windows 95 and
> Windows 98 (and I think Windows NT 3.5).

> Can anyone suggest a fix to the problems that I am experiencing under
> Windows NT 4.0?

> Any suggestions are most welcome, as I have an application that regularly
> requires switching between text and graphics mode, and then back to text
> mode. On the first switch back to text mode, the text is no longer
> visible, and never reappears when switched back to text mode at other
> times. The application seems to work just fine, apart from the lack of
> text display.

> Note that the problem occurs irrespective of whether I just use the
> RestoreCRTmode procedure, or I do call to CloseGraph with a subsequent
> reinitialisation of the graphics mode using InitGraph.

> Is there a fix to the graphics runtime library that will get rid of this
> problem?

> Witold
> E-mail: witwald...@optusnet.com.au
> Remove XE1 if e-mailing.
> Send spam to ab...@whitehouse.gov

Maybe the RGB Palette got corrupt? (all black).
You dind't runt the program from a NT window did you?

Markus

Re:Problem running BGIDEMO.PAS under Windows NT 4.0


Quote
In article <3B4C719E.2070...@freenet.de>, Markus Humm <markus.h...@freenet.de> wrote:
>Maybe the RGB Palette got corrupt? (all black).
>You dind't runt the program from a NT window did you?

By RGB palette, I assume you are referring to graphics mode. In graphics
mode the colors come out fine, even after the problem in text mode occurs.

After reading your post, I tried setting the text mode foreground and
background colors after the call to ResetCRTmode. This had no effect
whatsoever.

I was running the program in an NT DOS window. When the graphics mode
starts up, the window goes into full screen mode. Starting BGIDEMO.PAS in
full screen mode does not seem to have any effect either.

Thanks for your response.

Witold
E-mail: witwald...@optusnet.com.au
Remove XE1 if e-mailing.
Send spam to ab...@whitehouse.gov

Other Threads