Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- From: Danny Strümpel <dannys9@invalid>
- Date: Tue, 20 May 2008 21:30:45 +0200
Ikke schrieb:
I'm trying to delete a file in a Delphi console application. Everything works fine and the project compiles, except for one hint which I do not understand:
[Pascal Hint] project.dpr(102): H2443 Inline function 'DeleteFile' has not been expanded because unit 'Windows' is not specified in USES list
If I try to add the Windows unit, I get all sorts of errors on other lines.
Can anybody explain to me what this means?
SysUtils.DeleteFile() calls Windows.DeleteFile()
If I understood it correctly, this error should not show up, unless you are inheriting and expanding SysUtils.DeleteFile(). And this is impossible since DeleteFile() is a routine and not an object's method.
I did a quick test and don't get this message. Which Delphi version are you working with?
Btw, I also have no problem referring the Windows unit in console type applications. What error do you get in this case?
--
Früher war ich Agnostiker, aber jetzt bin ich mir nicht mehr so sicher.
....und wech
Danny <dannys9 (at) gmx (dot) de>
.
- 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:
- Prev by Date: Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- Next by Date: Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- 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
|