Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to avoid a specific "FindData" to a platform?

405 views
Skip to first unread message

Rodrigo Pimenta Carvalho

unread,
Sep 18, 2003, 8:37:42 AM9/18/03
to
Hi.

I built an application on Delphi 5 and every thing was well.
Today I compiled my old app in Delphi 7.
However, I got warnings like:

"Symbol FindData is specific to a platform"

"The symbol is tagged (using the platform hint directive) as one that
may not be available on all platforms. If you are writing cross-platform
applications, it may cause a problem."

This warnings raised to the following code line:

...
var
HighDateTime : cardinal;
SearchRec: TSearchRec;
Highdatetime:= SearchRec.FindData.ftCreationTime.dwHighDateTime; //
this line caused the warning.
...

How can I fix my code??

Any hint will be very helpful.

Thanks .

Rodrigo.

Ignacio Vazquez

unread,
Sep 18, 2003, 10:04:28 AM9/18/03
to
"Rodrigo Pimenta Carvalho" <pim...@inatel.br> wrote in message
3F69A716...@inatel.br...

> How can I fix my code??
>
> Any hint will be very helpful.

There's nothing wrong with your code per se, it's just that what you're
doing won't work under Linux.

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.


Ian Kirk

unread,
Sep 18, 2003, 11:05:20 AM9/18/03
to
"Rodrigo Pimenta Carvalho" <pim...@inatel.br> wrote in message
news:3F69A716...@inatel.br...

> Hi.
>
> I built an application on Delphi 5 and every thing was well.
> Today I compiled my old app in Delphi 7.
> However, I got warnings like:
>
> "Symbol FindData is specific to a platform"
>
> "The symbol is tagged (using the platform hint directive) as one that
> may not be available on all platforms. If you are writing cross-platform
> applications, it may cause a problem."

As Ignacio says, there's no actual problem with your code - you're just
being warned that it'll only work underWindows.

If you want to suppress the warnings, add this line at the top of all
affected units:

{$WARN SYMBOL_PLATFORM OFF}

HTH,
Ian


0 new messages