Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turbo Pascal 6.0 garbage on graph under MSDOS

Status
Not open for further replies.

GPerk

Programmer
Jul 6, 2002
161
US
Back in 1997 I wrote some programs that were included in a book on Model Airplane Performance. I hadn't run the programs on my windows machine since then. Recently I ran them and everything still works fine, EXCEPT:

One program draws a graph on the screen (uses Graph). Every thing looks correct EXCEPT the numbers that label the x- and y-axis of the graph. THe only digit that is correct is zero. The other digits appear to be Japanese or Chinese ideographs.

Has anyone else seen this?
What causes it? Can it be fixed?
 
This really isn't the proper forum for this question. It would be better addressed here:
But I can address a few things: What Windows is this? If it's 2000/XP, anything with the graph unit is strictly incompatible, especially when it comes to font sets.

Other than that, what kind of graphics is this set up for? If it's anything less than VGA, you're going to have a problem, since most newer hardware has removed any kind of capability for EGA, CGA, etc. Same issue applies to the font sets, since most cards don't have to show system-defined characters in DOS anymore.

Do you still have the source? You're going to need that for any solution. No workarounds here.

Actually, most Turbo Pascal stuff would be considered very antiquated at this point. If what I suggested doesn't work, get FreePascal DOS/Win32, or get Delphi.
 
Glenn9999,
Thanks for the pointer to Pascal in the Workplace - I didn't know that forum existed.

I strongly suspect it is a font problem. The rest of the graphic stuff works. I do have the source. In fact, I'm the only one who does.

Antiquated is right! Seven years is a long time the computer world. I think I'll just redo the programs in VB6.

But I'll look on the Pascal forum to see if there is an easy fix to the problem.
 
Oh if you got the source, just get a copy of FPC Pascal and compile it under there?


I do remember seeing work-arounds for BGI font issues somewhere, you might try searching the web too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top