I didn't say it wasn't a warning, I said it was just a PLATFORM
WARNING and who cares unless you are writing CLX applications.
[DCC Warning] Unit39.pas(24): W1005 Unit 'FileCtrl' is specific to a platform
Which you can turn off in the Compiler Messages page in Project
options. Uncheck the "Platform Unit" entry.
ForceDirectories is now in the SysUtils unit. use that version.
ProcessPath functionality can be replaced with calls to ExtractFile*
methods in SysUtils - note some results are slightly different.
I guess the Platform warning for the unit was added because of Kylix
back in D6/D7 days.
If you don't want to turn off the platform warning message application
wide just disable warnings in the uses clause.
uses
{$WARN UNIT_PLATFORM OFF}
FileCtrl
{$WARN UNIT_PLATFORM ON}
;
cheers,
Jeremy
On Fri, Mar 28, 2008 at 2:28 AM, Robert Meek <[EMAIL PROTECTED]> wrote:
> It IS listed as a warning. And I use any number of it methods in
> various units, such as ForceDirectories, ProcessPath, and more. I haven't
> found any equivalent methods elsewhere.
>
> from Robert Meek dba "Tangentals Design"
> e-mail: [EMAIL PROTECTED]
> Freelance Windows Programming for XP and Vista
> Also proud to be a Moderator of the "Delphi-List" at elists.org
>
> "Reality cannot be explained...only enjoyed or endured as your current
> perspective allows!"
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Jeremy North
> Sent: Wednesday, March 26, 2008 6:15 PM
> To: Borland's Delphi Discussion List
>
> Subject: Re: Delphi 2007
>
> The FileCtrl unit isn't given a warning that it is deprecated but it
> is a platform warning.
>
> On Wed, Mar 26, 2008 at 11:43 PM, Robert Meek <[EMAIL PROTECTED]> wrote:
> > There is a way to turn the warning off, however if I'm using
> > something from that unit that IS deprecated, shouldn't there be a
> > replacement for it?
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi