How to include the objects that were not found

If you use only the types of references that are included in the EXE or PKD files built by PocketBuilder (as described in “Which objects are copied to the executable file”), you do not need to do anything else to ensure that all objects get distributed: they are all built into the executable file or its dynamic libraries.

If you use the types of references described in the two previous sections (“Which objects are not copied to the executable file” and “Which objects are not copied to the dynamic libraries”), you must include the objects that were not found, using the methods that follow.

Distributing graphic objects

For graphic objects in BMP, ICO, or GIF files, you have two choices:

Graphic objects in JPEG files cannot be included in a PKR file and must be distributed separately if they are not built into the executable file. Graphic objects in PNG files cannot be included in a PKR file or an executable file, and can only be used if they are distributed separately.

Distributing DataWindow objects

For DataWindow objects, you have two choices:

Distributing other objects

All other objects (such as windows referenced only in string variables) must be included directly in a dynamic library.

Table 27-4 summarizes resource distribution possibilities.

Table 27-4: Summary: options for distributing resources

Distribution method

Graphic objects

DataWindow objects

Other objects

As a separate file

Yes

No

No

In an executable or dynamic library that references a PKR

Yes

Yes

No

Directly in a dynamic library

No

Yes

Yes