Oppure

Loading
26/06/11 13:02
Danitr
Quando faccio partire wingraph mi da errore not found driver e usando le palette not found palette
come faccio ad farle partire ?
Program Esempio; 
{$apptype gui}
uses wingraph;
var mess: string;
gd, gm: smallint;
ercode:smallint;
begin
gd:=scheda;
initgraph(gd,gm'C:');
errcode:=graphresult;
if (errcode = grOK) then
begin
mess :='ciao';
outtextxy(getmaxY-Textwidth  (mess)) div 2,(getmaxY-TextHeight(mess)) div 2,mess);
repeat until closegraphrequest;
closegraph;
end;
end.










Ultima modifica effettuata da Danitr 01/07/11 12:21
aaa
27/06/11 0:44
HeDo
controlla se esiste la compatibilità con il sistema operativo, è probabile che non sia supportato.
aaa
27/06/11 12:56
Phi
Dovresti postare un codice.

Questo semplice codice funziona:
SetWindowSize(640,480);
gd:=nopalette; gm:=mCustom;
InitGraph(gd,gm,'');
repeat until CloseGraphRequest; //this waits for close button to be clicked


Non penso sia legato al sistema. La wingraph usa le API windows e mi pare che la funzioni da Win9x
Ultima modifica effettuata da Phi 27/06/11 12:58
aaa