Hi....i tried to make a program like this.....<br>
<br>
program test;<br>
uses graph,crt;<br>
graphmode,graphdriver : integer;<br>
bild : pointer;<br>
const<br>
maxX = 600;<br>
minX = 40;<br>
maxY = 440;<br>
minY = 40;<br>
begin<br>
<br>
graphmode:=detect;<br>
Initgraph(graphmode,graphdriver,'');<br>
if graphresult<>grok then halt(1);<br>
<br>
setfillstyle(solidfill,8);<br>
bar(0,0,maxX,minY);<br>
bar(0,maxY,maxX,480); <br>
bar(maxX,0,640,480); {drawing a pic}<br>
bar(0,0,minX,maxY);<br>
<br>
getmem(bild,imagesize(0,0,640,480));{get memory}<br>
getimage(0,0,640,480,bild^); {coying the pic}<br>
readln;<br>
<br>
cleardevice; {clears the screen}<br>
readln;<br>
<br>
putimage(1,1,bild^,normalput);<br>
{putting the pic on screen again}<br>
readln;<br>
closegraph;<br>
end.<br>
<br>
<br>
But it doesnt seem to work.....the sh*t crashes when i run it...and some strange red stuff appears<br>
It looks like some kind of chineese alphabet or something.<br>
then i have to reboot<br>
<br>
does anyone know, what im doing wrong....<br>
i will use this to a game im doing (if i can get it to work) <br>
Tank-2000 is the name of the game.<br>
<br>
Cya<br>