Hello,
I have decided to make a timer program on my computer to limit the amount of time that I game. Anyways, I have it working fine with a small borderless window in the top left of the screen that ticks down and when it gets to 0 it sounds an alarm, turns red, and waits for me to click it. The problem is that the console window pops up and looks very out of place. Is there some kind of SDL or Windows function that will allow me to destroy that window yet still maintain all the functionality of my SDL window?
Labdabeta
182
Posting Pro in Training
Featured Poster
Recommended Answers
Jump to PostYou can go into your project settings and make it a Win32 Windows application and that will hide the console window.
Jump to PostIf you are using Windows it's pretty simple, but not exactly guaranteed to not "flash" a console window for a moment.
What sfuo meant is you can tell your compiler to not spawn the console window. It's a compiler switch.
Now, this is the "dirty" way...
Jump to PostNot really, ya just need to get a handle to the console window somehow.
http://msdn.microsoft.com/en-us/library/ms683175(v=vs.85).aspxOkay, I think I see the problem...
Remarks
To compile an application that uses this function, define _WIN32_WINNT …
All 11 Replies
sfuo
111
Practically a Master Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
pseudorandom21
166
Practically a Posting Shark
Labdabeta
182
Posting Pro in Training
Featured Poster
pseudorandom21
166
Practically a Posting Shark
Labdabeta
182
Posting Pro in Training
Featured Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
pseudorandom21
166
Practically a Posting Shark
Labdabeta
182
Posting Pro in Training
Featured Poster
pseudorandom21
166
Practically a Posting Shark
Labdabeta
182
Posting Pro in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.