Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap in a MDI Pin
Paul Selormey10-Apr-00 1:49
Paul Selormey10-Apr-00 1:49 
GeneralCustom Control in a DLL Pin
Russell Robinson15-Mar-00 20:30
Russell Robinson15-Mar-00 20:30 
QuestionHow can I give a 30 day working version of a program? Pin
Erich Ruth15-Mar-00 9:28
Erich Ruth15-Mar-00 9:28 
AnswerRE: How can I give a 30 day working version of a program? Pin
Alex Gorev16-Mar-00 4:25
Alex Gorev16-Mar-00 4:25 
AnswerRE: How can I give a 30 day working version of a program? Pin
Anonymous23-Mar-00 15:51
suss Anonymous23-Mar-00 15:51 
GeneralRe: RE: How can I give a 30 day working version of a program? Pin
ArryTheDog27-Apr-00 0:43
ArryTheDog27-Apr-00 0:43 
GeneralRunning a console program Pin
Claude Gagnon15-Mar-00 7:15
Claude Gagnon15-Mar-00 7:15 
GeneralRe: Running a console program Pin
Paul Selormey10-Apr-00 2:13
Paul Selormey10-Apr-00 2:13 
Hello,
This is the trick. VC++ does not directly run your application. Instead it hands it over to another console application vcspawn.exe in the VC++ bin directory. This executes your program as a process and wait till it completes and then prints
"Press any key to continue".
It then immediately sets itself to receive an input from the user and any key pressed is enough to get it to the end of its main().

To simply emulate this, at the end of your main(), do something similar to

int main()
{
.....// your main code ends here
// End of main processing
cout<<"Press any key to continue..."<
GeneralNTP Pin
dek15-Mar-00 6:58
dek15-Mar-00 6:58 
Generalprinting bendy text Pin
Duane15-Mar-00 2:29
Duane15-Mar-00 2:29 
Generalwriting to a port in Window NT Pin
Norman Goris14-Mar-00 8:54
sussNorman Goris14-Mar-00 8:54 
GeneralCells in ADOMD VC++ Pin
Member 78113-Mar-00 7:43
Member 78113-Mar-00 7:43 
GeneralCells in ADOMD VC++ Pin
Member 78113-Mar-00 7:43
Member 78113-Mar-00 7:43 
Generaldocument file Pin
septimiu12-Mar-00 22:01
septimiu12-Mar-00 22:01 
GeneralRE: document file Pin
Mike Dunn13-Mar-00 18:56
suss Mike Dunn13-Mar-00 18:56 
Generaladvanced ui Pin
Member 254412-Mar-00 10:39
Member 254412-Mar-00 10:39 
GeneralScrolling a dialog window in a tab control Pin
Brad11-Mar-00 18:35
Brad11-Mar-00 18:35 
GeneralApplication to Shell drag and drop Pin
Member 102011-Mar-00 3:17
Member 102011-Mar-00 3:17 
GeneralProcess Module Name Pin
Anonymous11-Mar-00 3:06
suss Anonymous11-Mar-00 3:06 
GeneralRE: Process Module Name Pin
Anonymous19-Mar-00 19:37
suss Anonymous19-Mar-00 19:37 
QuestionHow save content (DC) of a MCI window as a Cbitmap (Urgent)? Pin
Julian10-Mar-00 5:32
Julian10-Mar-00 5:32 
Generalclass for ftp client and server Pin
Anonymous9-Mar-00 21:14
suss Anonymous9-Mar-00 21:14 
GeneralRE: class for ftp client and server Pin
Alex Gorev10-Mar-00 5:36
Alex Gorev10-Mar-00 5:36 
GeneralResizing controls on the fly Pin
zenubis9-Mar-00 5:54
zenubis9-Mar-00 5:54 
GeneralRE: Resizing controls on the fly Pin
Mike Dunn9-Mar-00 7:08
Mike Dunn9-Mar-00 7:08 

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.