<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Given:<br>
<br>
TRegIniFile = class(TRegistry)
<br>
...
<br>
public
<br>
constructor Create(const FN: string); // <<-- no overload
<br>
constructor Create(const FN: string;aaccess:longword); overload;
<br>
...
<br>
<br>
The following must always fail:<br>
<br>
<pre wrap="">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.
</pre>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 16px;" lang="x-western">
<pre wrap="">
</pre>
</div>
<br>
<br>
<br>
Paul Ishenin wrote:
<blockquote cite="mid:48280DBD.2020900@kmiac.ru" type="cite">Paul
Ishenin wrote:
<br>
<blockquote type="cite">Hmm... How it is so you dont think it fail?
Or you suspect I imagine that error message :)
<br>
</blockquote>
<br>
And if someone want a test project - here it is.
<br>
<br>
Best regards,
<br>
Paul Ishenin.
<br>
<pre wrap=""><pre wrap="">
<hr size="4" width="90%">
_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>
</pre></pre>
</blockquote>
<br>
--<br>
I haven't smoked for 1 year, 8 months and 3 weeks, saving $2,854.70 and
not smoking 19,031.38 cigarettes.
</body>
</html>