[fpc-devel] TRegistry, TRegIniFile

Paul Ishenin webpirat at mail.ru
Mon May 12 15:33:41 CEST 2008


Jeff Wormsley wrote:
> 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.
>   
Please refer to delphi help for more info about TRegIniFile. In a few 
words - it is a class that allows to work with a windows registry as 
with an ini file.

Best regards,
Paul Ishenin.



More information about the fpc-devel mailing list