Another vote for passing the callback interface to the pluggable DLL. That is, the callback interface ...
class IHostApplication
{
public:
virtual bool Log(const wchar_t* ip_log_string) = 0;
};
DLL
class IPlugin
{
public:
virtual void InitializePlugin(IHostApplication *ip_host) = 0;
};
DLL (, ), IHostApplication * , , , , .