• 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?

Pretty long title huh?
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.
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
I have the latest version of CodeBlocks, how do I make GUI app?
closed account (Dy7SLyTq)
choose win32 gui project (frame based) then follow a tutorial
Cool, I get a gray box when I run it....How do I do stuff with it?
closed account (Dy7SLyTq)
depends. what do you want to do?
Um, what function do you modify?
closed account (Dy7SLyTq)
its not that. its do you want to make a game? a file manager? a text editor? it matters
Can you show me an example program though, i'm not experienced with windows and stuff like that.
closed account (Dy7SLyTq)
ok just tell me this. what product do you want to make with win32 programming
Something like drag and drop stuff, such as battleship
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
Oh cool
lots more research to do...
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
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
Oh ok
Topic archived. No new replies allowed.