Ok so.... my problem is that whenever I compile and run in Dev-C++ using the MinGW compiler the output screen just flashes on quickly and then dissappears, I've tried the system("pause") command as suggested and the getchar () command I've checked the box in enviroment options that says something like "run window stays open" but none of these things work what else should I try?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should try posting your Basic 3 for one of the cases, like where you have added the "Pause" command. Otherwise you are asking us to make a LOT of assumptions about how you implemented things and compiled them.
The Basic 3 are covered in the thread titled "Please read Before Posting a Question"
Remember, the Basic 3 are useful even when there are no errors. Keep these two rules in mind
(1) Always post your Basic 3
(2) If you think you don't need to post them, refer to rule #1
;)
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have had the same problem. (I use Vista.) If I replace the last line "return 0;" with "system("PAUSE"); [next line] return EXIT_SUCCESS" then the console will stay open.
What is amazing is that my WinPcap 4.0 also cannot really be opened. It flashes and disappears. Is this a Vista problem? Please, some expert shed some light here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have worked with folks on this many hundreds of times. My asking for their Basic 3 was not to be mean, or because it's a rule, but because (1) There are couple of things that can cause the problem and (2) The OP had referred to already trying to add pause.
"Please, some expert shed some light here."
Perhaps your Basic 3 would help as well?
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok so.... my problem is that whenever I compile and run in Dev-C++ using the MinGW compiler the output screen just flashes on quickly and then dissappears, I've tried the system("pause") command as suggested and the getchar () command I've checked the box in enviroment options that says something like "run window stays open" but none of these things work what else should I try?
Sorry...
Don't be sorry. I am just explaining why I do things in a certain way, so you don't have to go through the silly learning process that I went through.
Wayne
You should try posting your Basic 3 for one of the cases, like where you have added the "Pause" command. Otherwise you are asking us to make a LOT of assumptions about how you implemented things and compiled them.
The Basic 3 are covered in the thread titled "Please read Before Posting a Question"
Remember, the Basic 3 are useful even when there are no errors. Keep these two rules in mind
(1) Always post your Basic 3
(2) If you think you don't need to post them, refer to rule #1
;)
Wayne
I have had the same problem. (I use Vista.) If I replace the last line "return 0;" with "system("PAUSE"); [next line] return EXIT_SUCCESS" then the console will stay open.
What is amazing is that my WinPcap 4.0 also cannot really be opened. It flashes and disappears. Is this a Vista problem? Please, some expert shed some light here.
I have worked with folks on this many hundreds of times. My asking for their Basic 3 was not to be mean, or because it's a rule, but because (1) There are couple of things that can cause the problem and (2) The OP had referred to already trying to add pause.
"Please, some expert shed some light here."
Perhaps your Basic 3 would help as well?
Wayne