Hi all.
I’m using SDL 1.1.3 in Win2000. How do I get rid of the console
that gets opened when I start my program? It’s nice for debugging
whith printf, but its of no use in production quality programs!
It gets opened no matter how I start my program(from explorer and
from inside VC++)
Thomas
You are probably creating a Console based application. Instead create a
Win32 Application and include SDLMain.lib.
-Ryan
wrote in message
news:20000829213653.GIJG1171.fepF.post.tele.dk at proxyplus.universe…> Hi all.
I’m using SDL 1.1.3 in Win2000. How do I get rid of the console
that gets opened when I start my program? It’s nice for debugging
whith printf, but its of no use in production quality programs!
It gets opened no matter how I start my program(from explorer and
from inside VC++)
Thomas
tts at image.dk wrote:
Hi all.
I’m using SDL 1.1.3 in Win2000. How do I get rid of the console
that gets opened when I start my program? It’s nice for debugging
whith printf, but its of no use in production quality programs!
It gets opened no matter how I start my program(from explorer and
from inside VC++)
Thomas
you need to tell VC5 to produce a GUI app, rather than a console app.
specify the following linker options when compiling a release version:
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
this way you can still write portable code with a normal main function and
keep the console window when debugging.
Regards
Lars
wrote in message
news:20000829213653.GIJG1171.fepF.post.tele.dk at proxyplus.universe…> Hi all.
I’m using SDL 1.1.3 in Win2000. How do I get rid of the console
that gets opened when I start my program? It’s nice for debugging
whith printf, but its of no use in production quality programs!
It gets opened no matter how I start my program(from explorer and
from inside VC++)
Thomas