[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Using console I/O under windows
- From: "Ashley Fryer" <lua@...>
- Date: Sun, 1 Aug 1999 17:20:09 -0700
Cool idea, I'm sure it will come in handy.
There is one minor bug in the code as shown:
HANDLE Console = CreateConsoleScreenBuffer( ... );
Should read:
Console = CreateConsoleScreenBuffer( ... );
IE you really wanted to use the global "Console" variable, not create
another local variable.
As for repositioning the window, you can do a FindWindow on the caption "Lua
Console" and then a SetWindowPos on the HWND you get back. Not the most
elegant solution, but I doubt there's a better one.
Regards,
ashley
> -----Original Message-----
> From: lua-l@tecgraf.puc-rio.br [mailto:lua-l@tecgraf.puc-rio.br]On
> Behalf Of Kenneth Rochel de Camargo Jr.
> Sent: Sunday, August 01, 1999 4:31 PM
> To: Multiple recipients of list
> Subject: Using console I/O under windows
>
>
> Hi everyone,
> I've been researching this for a while now, and finally I've
> found a solution
> for console I/O in a GUI Windows program (32 bit). This allows
> using programas
> that call write() and read() without a FILE* argument under
> Windows in GUI mode.
>
:: stuff snipped::
>