Solved

Pascal Graphics Mode

Posted on 1997-06-19
3
1,530 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert date 6 399
.dat problems 39 199
Activex get website that activex running on 3 85
TVirtualStringTree  search using TEdit 7 106
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now