plugin.h
来自「介绍c++游戏编程」· C头文件 代码 · 共 39 行
H
39 行
#ifndef IPLUGIN_H_
#define IPLUGIN_H_
#ifdef PLUGIN_EXPORTS
#define PLUGINDECL __declspec(dllexport)
#else
#define PLUGINDECL __declspec(dllimport)
#endif
class PluginManager;
class IPlugin
{
public:
virtual ~IPlugin() {};
virtual bool Initialize() = 0;
virtual bool Shutdown() = 0;
virtual void About(HWND hParent) = 0;
virtual const std::string & GetName() = 0;
virtual const std::string & GetExportName() = 0;
virtual bool Export( const char * pData ) = 0;
};
typedef IPlugin * (* CREATEPLUGIN)(PluginManager&mgr);
extern "C" PLUGINDECL IPlugin * CreatePlugin(PluginManager & mgr);
#endif // IPLUGIN_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?