Loading shared libraries and classes dynamically at runtime. - Poco
Loading shared libraries and classes dynamically at runtime. - Poco
Loading shared libraries and classes dynamically at runtime. - Poco
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Shared Libraries<br />
> Most modern pl<strong>at</strong>forms provide facilities to load program<br />
modules in the form of <strong>shared</strong> <strong>libraries</strong> (dynamic link <strong>libraries</strong>) <strong>at</strong><br />
<strong>runtime</strong>.<br />
> Windows provides a LoadLibrary() function, most Unix pl<strong>at</strong>forms<br />
have dlopen().<br />
> To use a <strong>dynamically</strong> loaded <strong>shared</strong> library, an entry point<br />
(address of a function) into the library must be found. The<br />
address can then be casted to an appropri<strong>at</strong>e function pointer,<br />
<strong>and</strong> the function can be called.