Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- From: Ikke <ikke@xxxxxxx>
- Date: Tue, 20 May 2008 21:37:17 GMT
Danny Strümpel <dannys9@invalid> wrote in
news:g0vbjq$o7r$03$1@xxxxxxxxxxxxxxxxx:
<snip>
In your Delphi version SysUtils.DeleteFile() seems to be declared
using the inline directive. This means that the call to
Windows.DeleteFile() would directly replace your call to
SysUtils.DeleteFile(). This can only work, if you also bind the
Windows unit into the uses clause. If you don't, it will simply not be
replaced.
Example:
uses
Windows, SysUtils;
begin
DeleteFile('blah');
end;
Without inlining, this calls SysUtils.DeleteFile() which calls
Windows.DeleteFile().
With inlining, this directly calls Windows.DeleteFile().
Ah, thanks for explaining - now I understand what this inlining is all
about.
If you don't include Windows, it simply uses the first way (which is
the standard way of calling this function in at least Turbo Explorer).
But as I already replied to Old Fan, I do not include Windows in the
uses list. As soon as I do, I get all sorts of other errors, but without
it, I still get the hint.
So, you can ignore this message, your program will work.
I know I can just ignore the message, but I'd still like to get rid of
it.
At work, we have a sort of unwritten rule:
1. if you find an error in the source code, fix it before checking the
source in. 2. if you get a hint, treat it like an error :)
Basically, I just want to know what this hint means and how to get rid
of it.
Thanks,
Ikke
.
- Follow-Ups:
- Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- From: Danny Strümpel
- Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- References:
- Strange hint: Inline function 'DeleteFile' has not been expanded??
- From: Ikke
- Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- From: Danny Strümpel
- Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- From: Danny Strümpel
- Strange hint: Inline function 'DeleteFile' has not been expanded??
- Prev by Date: Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- Next by Date: Re: Use pdf as background for form
- Previous by thread: Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- Next by thread: Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- Index(es):
Relevant Pages
|