Ok, I did that and the same result occurred. I ran it step-by step and watched the values of gd and gm and they were 9 for the gd and 2 for the gm. Are they normal? The same results occured with the previous version of code.
I placed the write(graphresult) after the closegraph and it displayed a 0 on the screen. I also made it write the result in a file while in graph mode and it too showed a 0. What does that mean?
I added the line write(graphresult); right after the initgraph call and nothing happens, it doesn't write anything on the screen. The cursor moves forward one position form the top left corner, jumps to the beginning of a new line and that's it.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.