Command window closing after calculation with FORTRAN


MPD78
07-22-2010, 02:32 PM
Hello all,

I designed a simple gui interface using VBA on a Windows XP machine that will launch via shellexecute old FORTRAN console app programs. The problem I have is that when all of the input is completed the calculation is performed the program closes. This is analogous to what happens when a C++ console app doesn't have a keep_window_open() function that basically just asks for a simple input to end the program.

The FORTRAN programs work correctly when the .exe is double clicked or the program is called from inside the command window.

Does anyone know of a remedy for this?

Thanks
Matt

MPD78
08-03-2010, 01:16 PM
VBA, at least the old office suite that I have, was too limited to solve this problem. The window was able to be kept open but other errors with storing the path directory were created. The solution was to use VB 2008 and just create a simple windows form with standard controls.

Thanks
Matt