Skip navigation.

exploreopera

| Help

Sign up | Help

How to extinct humanity

teaching essential knowledge to tomorrows youth

AllocConsole and freepascal

, ,

There comes the time, where you want to create a console at runtime in windows.

While you can just make something like this in Delphi:
AllocConsole();
writeln('stuff');


you have to do a bit more magic in freepascal:
AllocConsole();
System.IsConsole:=true;
SysInitStdIO();


after this you are free to go with all your writeln()s and readln()s.

After spending literally hours throwing pointers around me someone named christian_u in the channel #german-lazarus-forum on freenode finally ended my pain :wink:
IRC still has it's benefits :smile:

lol internetHow to:stream your webcam over telnet with Ubuntu linux

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : 0e98cf

Smilies