• Forum
  • Lounge
  • How do you make a program that opens up,

 
How do you make a program that opens up, works, but then doesn't show the cmd?

Mar 10, 2013 at 2:06am
Pretty long title huh?
Mar 10, 2013 at 3:33am
What IDE are you using? I know in CodeBlocks you can change the build type from "console application" to "GUI application" to prevent the console from being created.
Mar 10, 2013 at 4:24pm
If you have Visual Studio try using WinMain instead of main
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633559(v=vs.85).aspx
Last edited on Mar 10, 2013 at 4:25pm
Mar 10, 2013 at 9:25pm
I have the latest version of CodeBlocks, how do I make GUI app?
Mar 10, 2013 at 9:58pm
closed account (Dy7SLyTq)
choose win32 gui project (frame based) then follow a tutorial
Mar 10, 2013 at 9:59pm
Cool, I get a gray box when I run it....How do I do stuff with it?
Mar 10, 2013 at 10:03pm
closed account (Dy7SLyTq)
depends. what do you want to do?
Mar 10, 2013 at 10:04pm
Um, what function do you modify?
Mar 10, 2013 at 10:08pm
closed account (Dy7SLyTq)
its not that. its do you want to make a game? a file manager? a text editor? it matters
Mar 10, 2013 at 10:16pm
Can you show me an example program though, i'm not experienced with windows and stuff like that.
Mar 10, 2013 at 10:17pm
closed account (Dy7SLyTq)
ok just tell me this. what product do you want to make with win32 programming
Mar 10, 2013 at 10:20pm
Something like drag and drop stuff, such as battleship
Mar 10, 2013 at 10:21pm
closed account (Dy7SLyTq)
you might want to do sfml. i mean i know you could do it with pdcurses and win32, but i think sfml would be easier
Mar 10, 2013 at 10:22pm
Oh cool
Mar 10, 2013 at 10:23pm
lots more research to do...
Mar 10, 2013 at 10:30pm
Wait, It still does show the cmd, the black box, and this time it has a grey box...

What I meant was like to have a program run, but after you press a button, the invisible program stops
Mar 10, 2013 at 10:32pm
closed account (Dy7SLyTq)
i think it will always show the cmd in code::blocks, because thats how code::blocks runs it, but in the actual app it wont
Mar 10, 2013 at 10:38pm
Oh ok
Topic archived. No new replies allowed.