我在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错误代码 –