Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > General Computing and Open Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2010, 02:32 PM
MPD78 MPD78 is offline
Registered User
 
Join Date: Dec 2008
Location: Pittsburgh, PA
Posts: 172
Command window closing after calculation with FORTRAN

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
Reply With Quote
  #2  
Old 08-03-2010, 01:16 PM
MPD78 MPD78 is offline
Registered User
 
Join Date: Dec 2008
Location: Pittsburgh, PA
Posts: 172
Solved.

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.