Win32 application problem

Hello,

I want to build WIN32 application. End When I write code and run an application, command window opens and imidiatly close. What can I do?

Thank you for your answers.

samuelc
I am afraid that these two questions are different,because
one built an WIN32 application while the other built an
WIN32 Console Application.I have never built an Win32 application,so,I
don't know.
Sorry. I am begginer in c++. I'm talking about WIN32 Console app. Sorry.

Can you stel tell if I can stop this with break or pause or is better to use _getch()?

@ Bazzy: thanks for answer
......
Last edited on
So, the problem here is that you're trying to write a program with windows (that's a lower case w), and you instead get a console program, or that you can't get the console to stay open after the program finishes?
If it's the latter, I agree with Bazzy. Read this: http://www.cplusplus.com/forum/beginner/1988/
Otherwise, I'll need the name of the IDE you're using.
Thank you helios!
Last edited on

I was traying to do what it said on your link...but no luck.
Last edited on
You can do this man. Just keep trying.
Last edited on
I made it Yeah baby!
Last edited on
Alright man!
Last edited on
Can you post a code here. I will try to hel you.
Last edited on
(Google translation Slovenian ยป English works!)
For the last thing use something like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
int n;
cin >> n;
switch(n)
{
     case 1:
        cout << "Have a nice day";
        break;
     case 2:
        cout << "Good night";
        break;
     default:
        cout << "Good morning";
}



(edit:)
@samuelc & valisa
if you are going to make discussions on your own language, why don't you send e-mails?
http://translate.google.com/translate_t#en|sl|Talking%20slovenian%20in%20an%20website%20in%20english%20is%20rude!
Last edited on
You are so smart samuelc...WIN32 application :)
Last edited on
......
Last edited on
No it doesent work.
Last edited on
trying out... patience to the end
Great. Thanks!
Last edited on
Topic archived. No new replies allowed.