Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Pascal Graphics Mode

Posted on 1997-06-19
3
Medium Priority
?
1,549 Views
Last Modified: 2012-08-14
What commands do I use to get some graphics commands to work - _moveto_, _lineto_ etc. I tryed:

uses Graph;

But thats not it. Also tryed

uses InitGraph;

but it can't find the procedure.

I'm using TP7 for DOS.


Thanks,
    Dedo Mraz
0
Comment
Question by:Dedo Mraz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
Michel021497 earned 0 total points
ID: 1215381
You must use
uses Graph;

If you want to use some of the functions of Grsph, you must type the correct name for every procedure.

For example:

MoveTo( 10, 10 );
LineTo( 20, 20 );

This moves the 'cursor' to (10,10) and draws a linef from this point to (20,20).

If you want to learn more graphics-functions, just get help in TP7.
0
 

Author Comment

by:Dedo Mraz
ID: 1215382
Thanks for that Michael, but it didn't work.

After I run the program [ctrl-F9] it says:

BGI Error: Graphics not initialized (use InitGraph).

And after I include InitGraph in "uses" it says:

Error 15: File Initgraph Not Found.


0
 
LVL 1

Expert Comment

by:potsy
ID: 1215383
you need to add the folowing:

procedure init;
var gp,gm:integer;
begin
  gp:=detect;
  initgraph(gp,gm,'c:\tpascal\bgi\');
end;

chang the c:\tpascal to your drive and root directory but leave the \bgi\
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With the evolution of technology, we have finally reached a point where it is possible to have home automation features like having your thermostat turn up and door lock itself when you leave, as well as a complete home security system. This is a st…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question