# DLL Library Conventions

> Source: https://manual.pvxplus.com/pluslib1/sect1-1/c

To have PxPlus use a DLL library, it ***must*** exist in the same directory as the *pxplus.exe* program. The Maintenance utility '**\*plus/dll/maint**' provided with PxPlus is used to build a DLL library. The DLL will contain the PxPlus programs and data files that you need for your application as Windows Resources. See **[Maintenance Utility](https://manual.pvxplus.com/pluslib1/sect1-1/a)**.

During system initialization, PxPlus will open the DLL and build a list of the files/programs that it contains. Whenever your application references any of the files contained within the library, the version in the library will be used, regardless of the value set in the **[PREFIX](https://manual.pvxplus.com/directives/prefix)** directive.

Note:  
File names within the library are case insensitive, and all slashes will be converted to a forward slash.

To determine if the program/file is being accessed from the DLL library, the full pathname for the program/file will contain "\[res\]" as a prefix.

## Single DLL Library

The Maintenance utility '**\*plus/dll/maint**' is used to create a single resource DLL library. See **[Maintenance Utility](https://manual.pvxplus.com/pluslib1/sect1-1/a)**. For PxPlus to use the DLL library, it ***must*** be named **'PLUSLIB.DLL**'.

## Multiple DLL Libraries

One additional resource library can be referenced within the **\[Config\]** section of the PxPlus **[INI file](https://manual.pvxplus.com/pxplus-installation-and-configuration/customizing-pxplus/ini-contents)** using the **[ResourceLib=lib.dll](https://manual.pvxplus.com/pxplus-installation-and-configuration/customizing-pxplus/ini-contents#Mark4)** setting.

***Example:***

\[Config\]  
ResourceLib=yourlib.dll

Up to 10 additional resource libraries can be referenced by using the **'OPTION'** mnemonic (the **["ResourceLib"](https://manual.pvxplus.com/mnemonics/option#resourcelib)** setting). In the example below, each DLL is separated by a **;** *(semi-colon)*:

***Example:***

```
PRINT 'OPTION'("ResourceLib","lib1.dll";"lib2.dll";"lib3.dll")
```

Note:  
The PLUSLIB.DLL is *required* when using multiple resource libraries. The PLUSLIB.DLL library can contain PxPlus programs and data files, or it can be empty.

*(Multiple libraries support was added in PxPlus v11.)*
