print() and windows stdout redirection
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: print() and windows stdout redirection
- From: "Wesley Smith" <wesley.hoke@...>
- Date: 2008年4月20日 18:04:44 -0700
Hi list,
I'm making a windows app with a console that I want to redirect the
lua print() function to. I have the redirection working with fputs
and printf etc, but for whatever reason, when print is called from
within lua, I don't see it. The dll/lib I'm using is compiled in
vs2008 so it links against windows libs. My app is a windows app, not
a console app and I use AllocConsole() to get one and follow this
code: http://dslweb.nwnexus.com/~ast/dload/guicon.htm to redirect the
std* files.
Any ideas as to what could be going on?
thanks,
wes