Hello, I’m pretty new to linking-kind of things and would like to ask community for help on how can I use Juce dynamic library by linking it at run-time.
Tool I use has it’s own build tool and has absolutely no documentation on load-time linkage so loading classes and functions at run-time is the only way to go for me.
I’m kinda ok with classic C-type functions where basic algorithm is
- getting dll handle ( LoadLibrary() )
- declaring function pointer
- Binding actual function to dll one ( GetProcAddress() )
But I just have no idea what am I supposed to do to import classes.
Looks like a general way of importing class at runtime is making an abstract class and inheriting it with required Juce class to return a pointer to it with a factory function but that would mean I should make changes to every Juce class I would want to use.
Is that the only way? Is there any method of obtaining class without modifying dll?