ApOpenDBaseFile() opens an external module file as a widget
database.
Typically, the module is a picture, but it can also be a window or dialog.
External module files supported
have a .wgtp, .wgti,
.wgtd, or .wgtw extension.

Before calling ApOpenDBaseFile(), you should call
ApAddClass()
for each widget class that you'll likely encounter in the database.
This function adds the widget classes to the internal widget class table.

Note that this function associates
the widget database with the current PhAB context.
Only language translations from that context are applied when you
create widgets using the database. If you don't want any language translations
to be applied to an external database, set the current context to NULL when
you open the database:

A typical PhAB application has only one PhAB context; only applications that load PhAB-created DLLs have to deal with multiple contexts.
For more information about creating DLLs from PhAB applications, see “Making a DLL out of a PhAB application” in the Generating, Compiling, and Running Code chapter of the Photon Programmer's Guide.