?
Solved

Pascal Graphics Mode

Posted on 1997-06-19
3
Medium Priority
?
1,547 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

752 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