I have an AMD 850Mhz PC with a PCChips motherboard and a SIS onboard video-card. I've been programming in Borland Pascal 7.0 for a while now, and I recently wanted to try out graphics. I wrote this simple code:
uses graph;
var gd,gm:integer;
path:string;
Begin
gd:=detect;
gm:=0;
path:='d:\pascal\BGI';
initgraph(gd,gm,path);
line(100,100,200,200);
readln;
closegraph;
end.
This should draw a line, but all I am getting after I compile and run is a black screen with the cursor flickering.
I tried this same code on a friend's PC (2200 AMD double core, high-perfomance video card) and it worked fine.
Any help would be appreciated, I have no clue why it isn't working on my PC.
Thanks.
uses graph;
var gd,gm:integer;
path:string;
Begin
gd:=detect;
gm:=0;
path:='d:\pascal\BGI';
initgraph(gd,gm,path);
line(100,100,200,200);
readln;
closegraph;
end.
This should draw a line, but all I am getting after I compile and run is a black screen with the cursor flickering.
I tried this same code on a friend's PC (2200 AMD double core, high-perfomance video card) and it worked fine.
Any help would be appreciated, I have no clue why it isn't working on my PC.
Thanks.