Run Your Application

After you have built an application, you can run it in any of the following ways:

Run Your Application from the IDE
Select a run specification for the application and click the Run button. The default Debug page in the Project section contains the Run Specification view.

Every executable in a project has a default run specification, which can be modified. An application can have more than one run specification, so you can run it with different sets of arguments.

To create a new run specification, click the New button. To copy an existing run specification, select Duplicate from the run specification's pop-up menu.

 

If your application did not run as you expected

  1. Only in the directory specified, if a fully qualified path name is given.
  2. In the current directory.
  3. In each of the directories specified by the PATH environment variable. If more than one directory in your PATH has a file with the given name, the operating system runs the first executable file it finds.

All DLLs used by your program, including run-time messages files, such as CPPRRT40.DLL and CPPRCR40.DLL for the VisualAge C run-time, must also be either in your current working directory or in one of the directories specified by the PATH environment variable.

All DLLs used by your program must also be in one of the directories specified by the LIBPATH environment variable. The C run-time messages file, CPPRRT40.MSG must also be either in your current working directory or in one of the directories specified by the DPATH environment variable, unless you have bound the messages to your executable file using the MSGBIND utility.



Application Run-Time Environment Variables


Redirect Standard Streams
Receive Data as Arguments of main
Specify Arguments to Your Program
Return a Value from a Program
Get the Return Code of a Program
Start a Program Under Debug Control