Building Packages

From Appmethod Topics
Jump to: navigation, search

Go Up to Compiling, Building, and Running Applications Index


You can create packages in Appmethod and include them in your projects.

To create a new package:

  1. Create a new package from the File menu:
    File > New > Other > C++ Projects > Package
    File > New > Other > Object Pascal Projects > Package
    This creates a new empty package and makes an entry for it in the Project Manager, along with two folders: one marked Contains and one marked Requires.
    Note: If you want to add required files to the package, you must add compiled packages (dcpil, .dll) to the Requires folder. Add uncompiled code files (.pas, .cpp, .h) to the Contains folder.
  2. Select the package name in the Project Manager.
  3. Right-click to display the drop-down context menu and choose Add to display the Add dialog box.
  4. Browse to locate the file or files you want to add.
  5. Select one or more files, and click Open.
  6. Click OK.This adds the selected files to the package.
  7. Choose Project > Build <Package Name> to build the package.

To add a package to a project:

  1. Create a new project.
  2. Select the project name in the Project Manager.
  3. Right-click to display the drop-down context menu.
  4. Choose Add.
  5. Browse to locate a package file.
  6. Select the file and click Open.
  7. Click OK.This adds the package to the project.
  8. Choose Project > Build <Project Name> to build the project.

See Also