PDA

View Full Version : DOS window...



Darkhog
02-07-2013, 08:46 AM
I've got rid of DOS window in Super Heli Land by using {$apptype GUI} compiler directive.

BUT

Is it possible to set it so when game launches with certain parameter it'll show it?

laggyluk
02-07-2013, 10:17 AM
maybe use another form for console window

Darkhog
02-07-2013, 06:36 PM
Then write/writeln won't work.

Ñuño Martínez
03-07-2013, 11:42 AM
If I remember correctly, if you remove the {$apptype GUI} you can use both console and forms.

Darkhog
04-07-2013, 03:33 PM
Yes, but I want user to be able to toggle this if he/she run game with special parameter, like when ran with /debug parameter it'll show this window and if not, it won't.

imcold
04-07-2013, 03:51 PM
Why would an user need a console window outside of the game?

Super Vegeta
04-07-2013, 08:00 PM
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681944(v=vs.85).aspx
Maybe this could come in useful?

Darkhog
04-07-2013, 10:20 PM
Thanks, I'll try that one!

LP
05-07-2013, 06:19 PM
I've attached some old code that will allow you to work with console window (also a wrapper for function described above).