Solved

Pascal Graphics Mode

Posted on 1997-06-19
3
1,543 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 June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course 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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

690 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