我在lazarus中使用了對象pascal。當我打開一箇舊項目並嘗試運行它時;這個代碼窗口中源代碼編輯器彈出:運行舊項目時出錯 - Lazarus
program TimeKeeper;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, datetimectrls, TimeKeeperU1;
{$R *.res}
begin
RequireDerivedFormResource := True;
Application.Initialize;
Application.CreateForm(TfrmTimeKeeper, frmTimeKeeper);
Application.Run;
end.
源窗口的錯誤此代碼窗口彈出,是搭配這些錯誤:
TimeKeeper.lpr(20,1) Error: Can't create object file: TimeKeeper.exe (error code: 5) TimeKeeper.lpr(20,1) Error: Can't create executable TimeKeeper.exe
有誰知道解決方法是什麼呢?
[ERROR_ACCESS_DENIED](https://msdn.microsoft.com/en-gb/library/windows/desktop/ms681382.aspx#ERROR_ACCESS_DENIED)它支付了解一些更常見的Win32錯誤代碼 –