Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Compiler-Direktive (https://www.delphipraxis.net/31169-compiler-direktive.html)

trifid 5. Okt 2004 15:26


Compiler-Direktive
 
Was bedeutet
Delphi-Quellcode:
{$C PRELOAD}
im Code?

Sharky 5. Okt 2004 15:33

Re: Compiler-Direktive
 
Hmmm.... $C ist eigentlich für Assert-Code zuständig

Zitat:

Zitat von F1-Knecht
Die Direktive $C aktiviert oder deaktiviert die Generierung von Assert-Code in einer Quelltextdatei. Die Voreinstellung ist {$C+}.
Gewöhnlich werden in der Auslieferungsversion eines Produkts zur Laufzeit keine Asserts verwendet. Deshalb steht die Compiler-Direktive {$C-} zur Verfügung, mit der die Erzeugung von entsprechendem Code deaktiviert werden kann.

Das mit dem PRELOAD ist mir auch nicht klar.

trifid 5. Okt 2004 16:35

Re: Compiler-Direktive
 
Die Direktive habe ich bei den FlatStyle Kompo's gefunden ...
Das {$C+} oder {C-} ist klar - F1-Hilfe
aber das PRELOAD, das ist das was ich nicht verstehe.
Ich bekomme zwar keine Fehlermeldung, aber ungewöhnlich ist das schon.

Robert Marquardt 5. Okt 2004 16:49

Re: Compiler-Direktive
 
Die Options-Buchstaben habe je nach folgendem Parameter unterschiedliche Bedeutung.
Bei PRELOAD wuede ich vermuten das es sich auf die Ressourcen oder die Anbindung von Funktionen einer DLL.

trifid 5. Okt 2004 20:16

Re: Compiler-Direktive
 
naja wenn man nicht gleich googled

habe auch noch eine andere Konstallation gefunden
Zitat:

{$C FIXED PRELOAD PERMANENT}
http://216.101.185.148/scripts/isapi...&article=66994
http://216.101.185.148/scripts/isapi...rticle=2462086

Die Lösung unter
http://www.matthewdoucette.com/artif...igence/wo8.txt
=> Altlasten aus der guten alte Turbo-Zeit
Zitat:

{$C FIXED PRELOAD PERMANENT} {for Timer Handler procedure }
{
Code Segment Attribute: Controls the attributes of a code segment.

FIXED The system cannot change the location of the code segment in memory.
PRELOAD The code segment loads when your program begins execution.
PERMANENT The code segment remains in memory once it is loaded.
}
oder
http://custom.lab.unb.br/pub/plan/pa...de/globdir.inc
Zitat:

{$C FIXED PRELOAD PERMANENT}
{
Without defining this I got almost always SEGMENT NOT PRESENT (exc 11)
on exiting the IDE, when run on under NT4.0... Strange a bit, not?
(Actually the fault occours in TDOSScreen.GetVideoMode() at the
BIOS call, but I just can't figure out why....)
}
oder bei borland
http://community.borland.com/article...,10323,00.html

ich denke, man kann auch ohne mittlerweile damit leben :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:50 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz