dllInitInstance Link Option (OS/2)

Syntax: Default:
link(dllInitInstance[, yes])
link(dllInitInstance, no)
link(dllInitInstance, no)

This option applies only when you are building a DLL on OS/2. Use it to specify whether the initialization function for the DLL is executed every time an instance of that DLL is loaded, or only when the first instance is loaded.

By default, the DLL initialization function is executed for each instance.

Consider how programs may share the DLL when you set this option. Often, you set dllInitInstance to yes so that when many programs share a DLL, the instance of the DLL for each program starts with the same initial values. Alternatively, if you want the programs to share values, set dllInitInstance to no.

Generally, it is best to set the same value for link(dllInitInstance) and link(dllTermInstance).



Incremental C++ Builds
C Compilation
Configuration Files


Set Build Options
Build
Build Dynamic Link Libraries
Build Subsystems


Link Options