Ask the Wizard Questions
Link: Shareable image update
The Question is:
I link my executable as a shared image. The linking in done in 2 steps.
The first step links the shared part, the next step links the shared
executable with the static code. No problems there. My problem is that
I need to be able to have my users replace a library, say for example
IPLUSR.OLB, in the shared executable. The "dummy" IPLUSR.OLB needs to
be linked into the shared executable to satisfy the references. Is there
a way to replace an existing library in a shared executable?
Is there a way to tell the shared executable that the library IPLUSR
can get replaced on the fly? If so how do I do this?
My final executable may be 50,000 blocks and linking may take 5 minutes.
I want my users to be able to quickly link a new execuable
and not take up so much disk space.
Desparately Looking for an Answer
The Answer is:
Shareable images do not contain nor make run-time references to
If you need to quickly change components of a shareable image that are
derived from a particular object library, you will need/want to place
these routines in a second shareable image, and link the first shareable
image against these routines. A standard image can be provided based
on the "stock" contents of the object library, or a "stub" image can
be provided. Programmers can thus build private images as required.
Redirection of shareable images can be performed with logical names.
(Typically non-privileged logical names, though privileged logical
names are required for redirecting shareable images within a privileged
or protected application.)