Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

console applications

wladimir47
Beginner
432 Views

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?

0 Kudos
2 Replies
ZlamalJakub
New Contributor III
432 Views
when console application finishes, its window disappears. Only solution is to put

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

0 Kudos
Steven_L_Intel1
Employee
432 Views

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.

0 Kudos
Reply