Пример #1
0
int main(int argc, char **argv) 
{
    PluginLoader factory;

    if(factory.OpenModule(gFilename, "CxUtils"))
    {
        // Every plugin library must have an initializer method to create
        // an instance of a plugin-based class.  CxUtils includes one example
        // method to do so, see plugin.h for how to declare and implement.
        Plugin* plugin = factory.CreatePlugin("CxUtils", "CreateCxUtilsPluginExample");

        if(plugin)
        {
            std::cout << plugin->GetPluginDescription() << std::endl;
            delete plugin;
        }
    }
    return 0;
}