Defining an executable application project
The Project painter for executable applications allows you
to streamline the generation of executable files and dynamic libraries.
When you build a project object, you specify the following components
of your application:
-
Executable
file name -
Which of the libraries you want to distribute as
dynamic libraries -
Which PowerBuilder resource files (if any) should
be used to build the executable file and the dynamic libraries -
Which build options you want to use in your project
-
Which code generation options you want to use
-
Version information for your application
If you do not use the Template Application Target wizard to
create a new application project, you need to define the project
using a Project wizard or by setting project properties in the Project
painter. After you have created a project, you might need to update
it later because your library list has changed or you want to change
your compilation options.
To define or modify an executable application
project:
-
Select the Application project icon on
the Project tab in the New dialog box to create a new application
project, or select File>Open to open an existing application
project.The Project painter workspace displays.

-
Specify or modify options as needed.
If you opened an existing project or a project
created using the wizard, the options already selected display in
the workspace. For information about each option, see “Executable application project
options”. -
When you have finished defining the project object,
save the object by selecting File>Save from the menu bar.PowerBuilder saves the project as an independent object in
the specified library. Like other objects, projects are displayed
in the System Tree and the Library painter.
Executable application project
options
Table 34-2 describes
each of the options you can specify in the Project painter for executable
applications. You can also specify most of these options in the Application
Project wizard.
|
Option |
What you specify |
|---|---|
|
Executable file name |
Specify a name for the executable. The |
|
Resource file name |
(Optional) Specify a PowerBuilder resource You can type the name of a resource file in the box or click For more about PBRs, see “Distributing resources “. |
|
Prompt for overwrite |
Select this if you want PowerBuilder |
|
Windows classic style |
Select this to add a manifest file to |
|
Rebuild |
Specify either Full or Incremental to As a precaution, regenerate all objects before rebuilding |
|
Machine Code |
Select this if you want to generate compiled Selecting Machine Code enables the other code generation options |
|
Trace Information |
Select this if you want to create a trace |
|
Error Context Information |
Select this if you want PowerBuilder |
|
Optimization |
Select an optimization level. You can |
|
Enable DEBUG symbol |
Select to enable any code that you placed |
|
Libraries page |
The label for the PBD or DLL check box If you are generating Pcode, you create PBD files. If you Specify a resource file for a dynamic library if it uses resources |
|
Version page |
Specify your own values for the Product The Product and File version numeric fields in the “Executable The four numbers can be used to represent the major version, |
|
Security page |
Use the Security tab page to generate For further information, see “Attaching or embedding |
|
Run page |
Specify command-line arguments and the |
Location of temporary files
The machine code generation process puts temporary files in
a temporary directory, such as the TEMP directory.
You can specify a different location in the [PB] section
of your PowerBuilder initialization file with the CODEGENTEMP variable.
You might want to do this if you have limited space on your local
system.
For example:
|
1 |
CODEGENTEMP=e:pbtempdir |