March 2000
Intermediate to advanced
576 pages
18h 13m
English
$DenyPackageUnit Compiler Directive
{$DenyPackageUnit Off} // default
{$DenyPackageUnit On}File
If you enable the
$DenyPackageUnit
compiler directive, Delphi prevents
you from using the unit in a package. Some units might perform
special initialization or finalization services for an application
and cannot be used in a package (which is really a DLL). For example,
Delphi’s ComServ unit uses the
$DenyPackageUnit directive. It implements several
methods for managing a COM server DLL, and those methods must reside
in the DLL itself, and not in a package DLL.
| Package Directive, $WeakPackageUnit Compiler Directive |
Read now
Unlock full access