Delphi 7 ругается на PChar

  • Автор темы fish
  • Дата начала
Статус
Закрыто для дальнейших ответов.
F

fish

Гость
#1
Delphi 7 ругается на PChar
пишет: Unsafe type 'PChar'
чем он так опасен?
 
V

Vagor.ini

Гость
#2
Delphi Help:

The Delphi dcc32 compiler now supports three additional compiler warnings: Unsafe_Type, Unsafe_Code, and Unsafe_Cast. These warnings are disabled by default, but can be enabled with the compiler directive {$WARN UNSAFE_CODE ON}, compiler command line switch (dcc32 -W+UNSAFE_CODE), and, in the IDE, on the Project|Options|Compiler Messages page.

This feature is intended to help you port your code to the managed execution environment of Microsoft's .NET platform. In a managed execution environment, "unsafe" means the operation cannot be verified during the static analysis performed by the Just In Time (JIT) compiler. Such code might pose a security risk, since there is not enough information for the JIT compiler to verify its runtime behavior. Examples of unsafe code include pointer operations and memory overwrites.
 
I

ironwit

Гость
#3
в общем не будет он компилироваться для net платформы...
 
Статус
Закрыто для дальнейших ответов.