> -- Delphi Help писал(а):
> The $APPTYPE directive is meaningful only in a program. It should not be used in a library, unit, or package....In Delphi code, Write writes one or more values to a text file. F, if specified, is a text file variable. If F is omitted, the standard file variable Output is assumed....var Output: Text;In Delphi, the Output variable is a write-only Text file associated with the process's standard output file.On Windows, most processes don't have a standard output file, and writing to Output raises an error. Delphi programs have a standard output file if they are linked as console applications.Как для library, пока не понятно. Пробовал напрямую WriteFile(GetStdHandle(STD_OUTPUT_HANDLE)... из dll - печатает.