- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran 11.1.051, Visual Studio 2008, Windows 7 HB
1) What should I do to console application window were at the forefront when the program finished?
Console application window located back of the Visual Studio window when I run the program from VS.
2) What should I do to windows applications (console and Quick Win) is not automatically closed when you exit the program?
3) How to respond to the letters in this forum?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
pause
at the end of program.
Other possibility is to run program from *.bat file like
program.exe
pause
it closes console window after key is pressed.
Put console window to foreground is possible only by win32 api call ShowWindow (I do not use QuickWin so may be it has its own function)
Jakub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In QuickWin, the default is to put up a message box asking if it is ok to close the windows. You can turn this off with a call to SETEXITQQ.
When run "without debugging" from Visual Studio, there is an added "press any key" prompt when the program exits. This does not occur if you run with debugging or if you run the program from outside Visual Studio.
Some people are finding that they cannot reply to posts in the forum. This will be fixed soon.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page