Re: Strange hint: Inline function 'DeleteFile' has not been expanded??



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
.



Relevant Pages

  • Re: Inlining functions using *CONTAINS* statement
    ... > the function call with its source code since the function is a HIGH ... is most of the run time of the program, that doesn't mean that inlining ... Your description of the function as HIGH maintenance makes it sound ... independent of the compiler. ...
    (comp.lang.fortran)
  • Re: [SLE] traceroute ver. 0.6.2 contd
    ... > Why should traceroute have changed and what should have changed? ... That's what change logs and source code are for. ... hint hint... ...
    (SuSE)
  • Re: Hint window with clickable controls?
    ... and modify the source code. ... I have successfully add a checkbox to ... I want a hint component that allow me show a list of text and each line ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: winerror 87 while doing SCardTransmit to transmit APDU to smart card.
    ... Without having source code with all return type of parameter passed, ... it's difficult to hint. ... As a alternative you search SCardCheckTransmit in private tree. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Reg Neural Network
    ... "simulation of adaptive noise cancellor, ... can any one help me out please reg the source code or any sort of hint... ... Since you asked for a hint ... ...
    (comp.soft-sys.matlab)