Well, but how do I call WriteConsole?
AllocConsole() works fine, SetConsoleTitle() works, but when I call WriteConsole I get said error.
JustSid, AllocConsole doesn't return anything. Otherwise I could use the stream it gives me with fputs or fprint... but I don't know how to get the stream and then set it to use that stream.