On 4 August 2011 15:58, Thomas Lauer<thomas.lauer@virgin.net> wrote:
Ryan Pusztai<rpusztai@gmail.com> wrote:
wlua.exe is for Windows only and it makes it so that the console is not
displayed when running a Lua script. Windows is funny how it ALWAYS displays
a console unless you have an entry point to the app called WinMain() (and a
linker settings change).
I think that's not entirely correct. WinMain() is not required, AFAIK.
It's the linker switch which does the trick and you can actually relink
an existing .exe file with a changed setting and so change the
behaviour. I've done that on occassion and though it has a slightly
"hackish" feel it has always worked.
Or for even more hackish feel, just flip the right bit in the compiled
binary, because that's all it takes :) You can use a tool like
stud_pe for that:
http://www.cgsoftlabs.ro/studpe.html
Cheers,
Tomek