Hide DOS windows?
by David Tan · in Torque Game Engine · 08/05/2004 (12:31 am) · 14 replies
When I run Torquedemo,it also start a DOS window,if I close it ,Touque also quit.how can I hide the DOS windows ?
#2
08/12/2004 (1:07 am)
Thank you! I do it.
#3
11/26/2004 (3:39 pm)
Thanks,i have done it
#4
Right-click project, select Property, select Linker, select System, select Windows (/SUBSYSTEM:WINDOWS) from SubSystem.
However, that pretty much leaves it hard to just kill the application, i.e. there is no close box on the Windows frame. You can do an Alt-F4 to kill it.
To get the close button, you can do the following:
Open up Torque Lib\platformWin32\winWindow.cc
Go to the CreateOpenGLWindow
Replace the
windowStyle |= ( WS_OVERLAPPED | WS_CAPTION );
with
windowStyle |= ( WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU );
Now, when in Windows mode, you will get the close button and it should fire off the WM_CLOSE message when it gets clicked.
Actually, it'd be really nice if this was just changed in the Torque base code. Unless someone can expose the reasoning for launching the game as a console on Windows.
09/20/2005 (6:59 am)
For Visual Stuiod.NET, youc an do the following:Right-click project, select Property, select Linker, select System, select Windows (/SUBSYSTEM:WINDOWS) from SubSystem.
However, that pretty much leaves it hard to just kill the application, i.e. there is no close box on the Windows frame. You can do an Alt-F4 to kill it.
To get the close button, you can do the following:
Open up Torque Lib\platformWin32\winWindow.cc
Go to the CreateOpenGLWindow
Replace the
windowStyle |= ( WS_OVERLAPPED | WS_CAPTION );
with
windowStyle |= ( WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU );
Now, when in Windows mode, you will get the close button and it should fire off the WM_CLOSE message when it gets clicked.
Actually, it'd be really nice if this was just changed in the Torque base code. Unless someone can expose the reasoning for launching the game as a console on Windows.
#5
09/20/2005 (2:35 pm)
Quote:Unless someone can expose the reasoning for launching the game as a console on Windows.It makes it easier to check the console error/message log?
#6
Not necessarily a WM_CLOSE message triggered on all systems : )
09/20/2005 (3:53 pm)
Torque is cross platform.Not necessarily a WM_CLOSE message triggered on all systems : )
#7
09/21/2005 (4:18 am)
In 1.4, Release builds don't have the DOS window. We keep it in DEBUG mode just to be safe.
#8
09/21/2005 (4:40 pm)
Does that also mean.. to get rid of the In-Game Editors.. When I do a release build.. those will be gone as well?
#9
09/21/2005 (5:00 pm)
No. A DOS window is just something the win32 api exposes. If you don't want editors, get rid of the creator subdirectory.
#10
Some people might still want them in release, too. Some games are focus on modding, etc. You get the point.
09/21/2005 (5:01 pm)
The ingame editors unfortunatly have nothing to do with that Jon :pSome people might still want them in release, too. Some games are focus on modding, etc. You get the point.
#11
09/21/2005 (6:31 pm)
Thanks Ben.. thats more what I was looking for. I don't want the player to have access to any of the out-of-game creation tools.
#12
09/22/2005 (7:25 pm)
I have seen how to get rid of that DOS window for VC and the likes... but how exactly do you do it for Eclipse? I've looked for similar tabs and as what was described for VC but no success. I've also gone through the help files for Eclipse and only found something relating to file paths as far as subsystems came up.
#13
\\Torque\sdk\mk\conf.GCC3.WIN32.mk
and near line 34 find
and change it to
and recompile. You can even put -mwindows on LFLAGS.RELEASE so you have the console in debug and no console in release. Hope this helps.
09/26/2005 (2:50 pm)
To remove the popup console when using TBE, or gcc in general open up \\Torque\sdk\mk\conf.GCC3.WIN32.mk
and near line 34 find
LFLAGS.GENERAL = -m i386pe LFLAGS.RELEASE = LFLAGS.DEBUG =
and change it to
LFLAGS.GENERAL = -m i386pe -mwindows LFLAGS.RELEASE = LFLAGS.DEBUG =
and recompile. You can even put -mwindows on LFLAGS.RELEASE so you have the console in debug and no console in release. Hope this helps.
#14
10/02/2005 (10:44 pm)
If you don't want tools to ship, just delete the creator subdirectory.
Torque 3D Owner Howard Dortch
Default Studio Name
In VC 6 you go to project/settings and select the link tab
go to "project options" at the bottom and look for this
/subsystem:someting change it to /subsystem:windows and do a rebuild