Initialisation/utilisation du mode graphique (unité graph)
salut !
En fait j'ai un problème avec l'initialisation du mode graphique. Quand je fais :
Code:
1 2 3
| ...
initgraph(gd,gm,'c:\documents and settings\ramatoulaye\bureau\rmx\tp7\bgi');
... |
à chaque fois on me signale une erreur au niveau de cette ligne :
Error: call by var parameters have to match exactly: Got LONGINT expected SMALLINT
je comprend pas d'où vient l'erreur. :( SVP j'ai vraiment besoin d'aide !
voici le programme en entier :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| program graphik;
uses crt, graph;
var gd, gm : integer;
begin
clrscr;
gd := detect;
initgraph(gd,gm,'c:\documents and settings\ramatoulaye\bureau\rmx\tp7\bgi');
if graphresult <> grok then
begin
writeln(grapherrormsg(graphresult));
writeln;
halt;
end;
readln;
closegraph;
end. |