tried both -mconsole and -mwindows, with renaming main() to WinMain() or wmain() and without. nothing.