Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Here's a a really simple way of solving your problem.

Add the following code to the end of your main() function:

system("pause");

That's it. Now, instead of disappearing, your console window should display the message "Press any key to continue..." when running as a stand-alone.

The system("") functions allow you to add any DOS command to your program. For example, you could use system("cd") or system("exit") for various purposes.

Good luck, and remember to keep it simple.
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 
GeneralRe: Reading the registry Pin
Shay Harel26-Jun-03 8:39
Shay Harel26-Jun-03 8:39 
GeneralOnscreen Keyboard (like the example here) - Focus problems Pin
fluxt26-Jun-03 7:28
fluxt26-Jun-03 7:28 
GeneralRe: Onscreen Keyboard (like the example here) - Focus problems Pin
Ryan Binns26-Jun-03 15:45
Ryan Binns26-Jun-03 15:45 

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.