Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralForward declaration of template Pin
Stan the man26-Jun-03 10:26
Stan the man26-Jun-03 10:26 
GeneralRe: Forward declaration of template Pin
Dave Bryant26-Jun-03 10:36
Dave Bryant26-Jun-03 10:36 
GeneralCOM Event Pin
act_x26-Jun-03 9:00
act_x26-Jun-03 9:00 
QuestionCan SendInput send extended ASCII characters? Pin
Dr. Ferd DeChezno26-Jun-03 8:58
Dr. Ferd DeChezno26-Jun-03 8:58 
Generalfile reading and converting the strings to doubles Pin
johnstonsk26-Jun-03 8:46
johnstonsk26-Jun-03 8:46 
GeneralRe: file reading and converting the strings to doubles Pin
Peter Weyzen26-Jun-03 8:51
Peter Weyzen26-Jun-03 8:51 
General.exe program won't stay open Pin
DaveE9th26-Jun-03 8:45
DaveE9th26-Jun-03 8:45 
GeneralRe: .exe program won't stay open Pin
Peter Weyzen26-Jun-03 8:49
Peter Weyzen26-Jun-03 8:49 
Console applications are applications that send all of their output to the console screen "stdout". When executing the program from an icon, windows will create a "command prompt" window for you, but upon completion of the program, the command prompt window will close. This is standard behavior.

If you want your program to maintain the command prompt window on it's own, add something to prevent the termination of the program. A getch() does the trick, as the program will not terminate until it gets some keyboard input from you. But when the program does termninate, the window closes. UNLESS you've set it in windows that command windows remain open.

The workaround, is to open your own command prompt window, and execute your program by typing the program name at the command prompt. This window will not close automagically.

OR change your program so that it is no longer a console application, and is a full fledged windows program with a real window.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks

GeneralRe: .exe program won't stay open Pin
DaveE9th26-Jun-03 8:58
DaveE9th26-Jun-03 8:58 
GeneralRe: .exe program won't stay open Pin
Peter Weyzen26-Jun-03 9:01
Peter Weyzen26-Jun-03 9:01 
GeneralRe: .exe program won't stay open Pin
yashraj121526-Jun-03 15:21
yashraj121526-Jun-03 15:21 
GeneralRe: .exe program won't stay open Pin
Scozturk26-Jun-03 20:50
professionalScozturk26-Jun-03 20:50 
GeneralRe: .exe program won't stay open Pin
pf727-Jun-03 3:54
pf727-Jun-03 3:54 
QuestionWhat is UNICODE? Pin
DaveE9th26-Jun-03 8:38
DaveE9th26-Jun-03 8:38 
AnswerRe: What is UNICODE? Pin
Peter Weyzen26-Jun-03 8:45
Peter Weyzen26-Jun-03 8:45 
GeneralRe: What is UNICODE? Pin
DaveE9th26-Jun-03 8:47
DaveE9th26-Jun-03 8:47 
GeneralRe: What is UNICODE? Pin
Peter Weyzen26-Jun-03 8:50
Peter Weyzen26-Jun-03 8:50 
GeneralRe: What is UNICODE? Pin
DaveE9th26-Jun-03 8:59
DaveE9th26-Jun-03 8:59 
GeneralRe: What is UNICODE? Pin
Peter Weyzen26-Jun-03 9:08
Peter Weyzen26-Jun-03 9:08 
GeneralRe: What is UNICODE? Pin
DaveE9th26-Jun-03 9:11
DaveE9th26-Jun-03 9:11 
GeneralRe: What is UNICODE? Pin
Peter Weyzen26-Jun-03 11:04
Peter Weyzen26-Jun-03 11:04 
GeneralClickety Pin
Jon Sagara26-Jun-03 15:13
Jon Sagara26-Jun-03 15:13 
Generalsetting file associate Pin
pnpfriend26-Jun-03 8:37
pnpfriend26-Jun-03 8:37 
GeneralReading the registry Pin
Shay Harel26-Jun-03 7:58
Shay Harel26-Jun-03 7:58 
GeneralRe: Reading the registry Pin
pnpfriend26-Jun-03 8:35
pnpfriend26-Jun-03 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.