New Classes in .dlls?

Started by
3 comments, last by DarkHamster 21 years, 7 months ago
How is it possible to create a new class in run-time linking. Although the topic of classes in run-time linking is cover in "Using Interfaces with DLLs," it seemed to me that it was unexplained how it is possible to import an unexpected or new class.


"There is no dark side of the moon really,
As a matter of fact, its all dark."
Advertisement
The actual creation is done with a factory function in the DLL, which returns a pointer to a new instance of the object. Then you store it via a pointer to the interface.

Don''t listen to me. I''ve had too much coffee.
I have one simple question now, a pointer to a base class can also point to a derived class, right?


"There is no dark side of the moon really,
As a matter of fact, its all dark."
yes
Say you used the factory function to create a class using pointer. If you then want to use functions of that class, do you have to "get address"?

This topic is closed to new replies.

Advertisement