I jave the following interface that must be implemented by a set of DLL libraries I want to dynamically import later:
class ToolboxInterface {
public:
struct ToolboxInfo {
std::string name;
};
virtual void process() = 0;
virtual void clear() = 0;
};
I want to dynamically load the DLL's as in here, and for that reason I have to force this interface to all my DLLs, as a way of being sure I can use GetProcAddress
in all DLL's.
What is the best way of forcing this interface into a DLL project? SHould I not use a class and use some other strategy instead? Or how can I use the class interface?