To use the Writeln() command on Windows apps, you need to uncheck the
"Compiler Options -> Linking -> Win32 GUI" checkbox. This will open a
console window when you run the app, which allows Writeln() to work.
There is a DebugLn() command as well. Can't remeber what unit it is
in, but it does some error checking, so that if you toggle that Win32
GUI checkbox, you wouldn't get any errors.
Regards,
- Graeme -
On 9/4/06, Tiziano_mk <[EMAIL PROTECTED]> wrote:
Reading the page http://wiki.lazarus.freepascal.org/IDE_Window:_Debug_Output
I read: "This windows shows the commands and answers between the IDE and the
debugger. It also
shows the output of the program, for example the output of the 'writeln'."
I'd like if there were a programmatically way to send strings to this window,
but after trying
(with a simple writeln('test'); ) I only get runtime error 103 (and this is
right on a Win32 GUI
application).
Maybe there is a way to send the output of the program to the debug window?
thanks
tiziano
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
There's no place like 127.0.0.1
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives