[SDL] Hiding the DOS Console
- Chameleon -
cham_gss at hotmail.com
Mon Dec 20 18:41:18 PST 2004
> >>I' developing a game with SDL in VC++ .NET. I created the project as a
Win32
> >>Console Application. SDL doesn't run in Fullscreen mode, so it would be
nice
> >>if the Dos Box under Windows won't appear.
> >>Can somebody tell me, how I can close it? (or just minimize)
dissappear:
If you have Microsoft Visual Studio do this:
1. your main method:
int main(int argc, char **argv) {............}
2. in Project properties in Linker Section:
Subsystem Windows (/SUBSYSTEM:WINDOWS)
e.g. my command line parameters for Linker:
/OUT:".\Debug/main.exe" /INCREMENTAL:NO /NOLOGO /DEBUG
/PDB:".\Debug/main.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 libjpeg.lib
opengl32.lib glu32.lib sdl.lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib
If you have any problems, change "Entry Point" of Linker options to
"msvCRTstartup" (or something similar ;-) try find word in google )
Maybe you must include msvcrt.lib in your project, but I am not sure.
Maybe you must implement (oh god! maybe!) msvCRTstartup like this:
void msvCRTstartup(void) { main(0, 0); }
Sorry for the mess but I have lot of time to work with C++/SDL/OpenGL and I
left my project incomplete with many compile errors. So I cannot try and
tell you!
Now I work with shity Java in many shity projects!...
More information about the SDL
mailing list