Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi [erledigt]compiler sagt unsicherer typ ? (https://www.delphipraxis.net/21639-%5Berledigt%5Dcompiler-sagt-unsicherer-typ.html)

kiar 5. Mai 2004 22:25


[erledigt]compiler sagt unsicherer typ ?
 
habe ein d5 projekt und d7 mit aufgemacht, da kommt oben stehende warnung.

lässt sich compilieren und laüft auch, aber warum die warnung?

raik

Robert_G 5. Mai 2004 22:31

Re: compiler sagt unsicherer typ ?
 
Die Warnung sagt dir, dass es diesen Typ im FrameWork nicht geben wird, bzw. dass dieser Typ in einem unsafe-Block stehen muss (zum Bleistift PChar).
Da ich erst mit D7 zu den Delphianern gekommen bin, kenne ich es nur so. ;)

kiar 5. Mai 2004 22:34

Re: [erledigt]compiler sagt unsicherer typ ?
 
robert,

was ist ein unsafe Block?

Robert_G 5. Mai 2004 22:41

Re: [erledigt]compiler sagt unsicherer typ ?
 
Ehrlich gesagt, so einen Käse habe ich nie benutzt. (ist ja auch genauso witzlos wie VCL.Net ;) )
Aber es wird wohl ein Block sein, der sich unter .Net kompilieren lässt obwohl er nicht von der CLR verwaltet und geprüft werden kann. -> App muss in FullTrust laufen.

Nachtrag:
Zitat:

Zitat von D8 OH
The $UNSAFECODE directive controls whether the unsafe keyword is accepted by the compiler. With {$UNSAFECODE ON}, you can mark procedures and functions with the unsafe keyword, for example:
procedure unsafeProc; unsafe;
begin
end;
Note: Unsafe code will not pass PEVerify, nor will any assembly or Delphi module that calls an unsafe procedure or function.



Alle Zeitangaben in WEZ +1. Es ist jetzt 22:42 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