![]() |
Re: CopyFile() plattformunabhängig
Zitat:
Delphi-Quellcode:
Und dass ich einmal mit Linux, einmal mit Windows kompilieren muss, ist mir auch klar. Drücke ich mich so unverständlich aus?
function __copy...;
begin // TODO: Daten kopieren (Pascal) // TODO: Zeitstempel (Linux-spezifisch) kopieren // TODO: Attribute (Linux-spezifisch) kopieren // Genau den Code suche ich!! end; function MyCopyFile... begin {$IFDEF WINDOWS} result := CopyFile...; // WinAPI DLL call {$ELSE} result := __copy...; {$ENDIF} end; |
Re: CopyFile() plattformunabhängig
Ich hab' s verstanden :mrgreen:
|
Re: CopyFile() plattformunabhängig
Zitat:
|
Re: CopyFile() plattformunabhängig
Du darfst eben nicht zu weit voraus denken ;). Dass man irgendwann auf Betriebssystemebene landet, sollte klar sein, aber es ging ja nur um OS-unabhängigen Code ("write once, compile anywhere", das hab ich doch schon irgendwo mal gelesen *g*).
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:20 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz