lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, 13 Nov 2009 14:24:16 +0100
Sergio Fadda <> wrote:

> I'm writing a standalone application (Win32... windowed) which
> integrates the LUA interpreter; the application uses LUA to export
> some features and I want to show console output in a separated window.
> Here's, a small _sample_ program that highlights my problem:

Firstly, Lua is not an acronym :)  Secondly, does Windows have a call
similar to UNIX's dup2?  This lets you duplicate a file handle to a
specific one (ie, so you can easily set what handles 1, 2 and 3
(stdout, in and err) go to.