请问Cannot Create File....什么原因造成的?
kege 2003-08-28 08:14:38 我在运行了下列程序后,出现Cannot create file C:\Program Files\Borland\Delphi6\Bin\InitCC32.exe的错误。关闭程序,重新打开后,就不能运行了。必须关掉整个delphi后才能运行。运行后又出现上述错误。我前几天还运行过,没有出现过这样的问题。delphi我已经重新安装了,使用的是win2k系统。
我运行了Demos里面的几个程序,也出现了类似的错误。有的是Cannot create output file....
请问这是什么原因造成的啊?谢谢了
我的程序如下:
procedure TForm1.Button1Click(Sender: TObject);
var
Rgn1,Rgn2: HRGN;
TriAngle:array[0..2] of TPoint;
begin
Rgn1 := CreateEllipticRgn( 20, 20, 100, 100);
Rgn2 := CreateEllipticRgn( 70, 20, 150, 100);
FillRgn(Canvas.Handle, Rgn1, CreateSolidBrush(clRed));
FillRgn(Canvas.Handle, Rgn2, CreateSolidBrush(clBLUE));
DeleteObject(Rgn1);
DeleteObject(Rgn2);
Rgn1:=CreateRectRgnIndirect(Rect(70,30,85,90));
FillRgn(Canvas.Handle, Rgn1, CreateSolidBrush(clRed));
DeleteObject(Rgn1);
Rgn1:= CreateRectRgnIndirect(Rect(85,30,100,90));
FillRgn(Canvas.Handle, Rgn1, CreateSolidBrush(clBlue));
DeleteObject(Rgn1);
end;