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

return to the last dialog box

janviech
Beginner
398 Views
Hello, I want to know how I can come back to my dialog box after running an executable program. When my program is finished all windows close but I just want to return to my dialog box to quit the program with the exit button and not when the calcul is finished. I use the instruction 'call exit()' because it is the only i found to exit correctly the executable program.
I'm working with MVS 6.6 in a fortran windows application.
Thanks for your answer.
0 Kudos
1 Reply
dbruceg
Beginner
398 Views

How are you executing the external program? If you run it with SYSTEM from within the dialog proc routine, it should work fine (I think), and "call exit" is probably the cleanest way to get a status back from the external program (why did the standards committee throw that away?). If you're running it with CreateProcess, I suspect you have not chosen the right options.

Bruce

0 Kudos
Reply