Given:

TRegIniFile = class(TRegistry)
...
public
  constructor Create(const FN: string);  // <<-- no overload
  constructor Create(const FN: string;aaccess:longword); overload;
...

The following must always fail:

program project2;

{$mode delphi}
// mode has no difference ofcource but error message differ

uses
  Registry;

var
  Reg: TRegIniFile;
begin
  Reg := TRegIniFile.Create;
  Reg.Free;
end.

You did not supply the filename of the INI file.

Jeff.





Paul Ishenin wrote:
Paul Ishenin wrote:
Hmm... How it is so you dont think it fail? Or you suspect I imagine that error message :)

And if someone want a test project - here it is.

Best regards,
Paul Ishenin.

_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel

--
I haven't smoked for 1 year, 8 months and 3 weeks, saving $2,854.70 and not smoking 19,031.38 cigarettes.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to