Hi.
In PluginRegistrant's constructor, there is RegisterPlugin()
PluginRegistrant(const wxString& name)
{
Manager::Get()->GetPluginManager()->RegisterPlugin(name, // plugin's name
&CreatePlugin, // creation
&FreePlugin, // destruction
&SDKVersion); // SDK version
}
I noticed that LoadPlugin() will triggered the call to RegisterPlugin(),but
which part of Code::Blocks is calling RegisterPlugin() ?
It's very confusing for me, because
namespace
{
PluginRegistrant<MyPlugin> registration("MyPlugin");
}
is inside a plugins' dll.
i'm sorry for my ignorant and my bad english.