StdOut on Windows

Mark Wieder mwieder at ahsoftware.net
Sun Jan 22 20:30:41 EST 2012


Mark-

Sunday, January 22, 2012, 1:02:56 PM, you wrote:

> That works. Not ideal, but definitely better than piping to a file.

Just curious about what you find so heinous about piping to a file.

At any rate, welcome to the world of Windows. When you write a Windows
program you can define it as a console app or a windows app. A console
app expects stdout to go to a console window, and you have to include
the C runtime library with the program or link it dynamically to a
specific version of the CRT dll. If you don't supply a console window
you can still pipe stdout to another program or file. If, on the other
hand, you write a windows app then stdout goes to the screen.

The engine for LiveCode, Runrev, Metacard is written as a console app,
so any stdout output can be easily captured by other programs but not
to the screen unless you manage the redirection or piping yourself.
You can't change this. Not without changing the engine.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list