Link to home
Start Free TrialLog in
Avatar of Dedo Mraz
Dedo Mraz

asked on

Pascal Graphics Mode

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
ASKER CERTIFIED SOLUTION
Avatar of Michel021497
Michel021497

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dedo Mraz
Dedo Mraz

ASKER

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.


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\