Silverfrost Forums

Welcome to our forums

Visual Studio Problems

8 Mar 2007 6:35 #1786

Hi Can anyone show me how I can actually RUN my program [.exe file] that I generate after building my code under WIN32 environment using VS05? I know that is easily done from the command line, or in PLATO, but it seems it not the same in VS05. I tried using the COMMAND WINDOW by sending its output to the OUTPUT WINDOW PANE, but was getting some error message.

Thanks

8 Mar 2007 7:15 #1787

The usual way is via F5 or Ctrl+F5 or by selecting an item in the Debug menu. I am not sure if Visual Studio provides a pause when the program has finished. If not then you can either put PAUSE in your code or run the program from your own Command Prompt window.

10 Mar 2007 12:59 #1795

Could you please show me an example of how to embed PAUSE within a program? I tried searching the FTN help menu for PAUSE, but got no hits.

Thanks

10 Mar 2007 7:28 #1796

PAUSE is a standard Fortran statement (I think it has been there from the beginning). Optionally it can be followed by a literal character string.

It should be placed after the last execuable statement for each path in your code.

PROGRAM main PRINT*,'Hello world' PAUSE 'Press any key to continue' END

Please login to reply.