http://en.wikipedia.org/wiki/Dynamic-link_library has a brief explanation
of how DLLs work and are used.
AFAIK what you wrote is how it would work. The DLL defines a function
which returns eg. a pointer of base class type (which is known by the
program). The actual object returned by the function can be anything
derived from that base class, without the program needing to know what
it is.
--
- Warp
Post a reply to this message
|