Archived

This topic is now archived and is closed to further replies.

New Classes in .dlls?

This topic is 5576 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites