diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-02 10:08:38 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-02 10:08:38 +0300 |
commit | 0dae041269e8abcd25f5155f4e33a5198e498147 (patch) | |
tree | 75b68c36e7bf3f51920b8bf4cfd268eeeb34c39c /modules/example/main.cpp | |
parent | 8ac279eaac75a07ae7d303ed4dc6dd3df98425c1 (diff) |
modified: main.cpp
Diffstat (limited to 'modules/example/main.cpp')
-rw-r--r-- | modules/example/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/example/main.cpp b/modules/example/main.cpp index 7d4b75d..85ae212 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -1,7 +1,7 @@ #include <windows.h> -#include <pluginapi.h> -#include <plugin_helper.h> +#include <pluginapi.h> //this is necessary, PLUGININFO structure, other related to load/unload plugin code +#include <plugin_helper.h> //just helper, not necessary PLUGINLINK *pluginLink; @@ -28,14 +28,14 @@ extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo() return &pluginInfo; } -extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) +extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) //basic initialisation, registering new functions, do other basic initialisation { pluginLink = link; //necessary MessageBoxA(0, "Simple plugin initialisation done", "INFO", MB_OK); return 0; //all ok, retrun 0 } -extern "C" int __declspec(dllexport) OnModulesLoaded() +extern "C" int __declspec(dllexport) OnModulesLoaded() //load main code from here, all services from other plugins must be avaible here { MessageBoxA(0, "Advanced plugin features needed services from other plugins are working from now", "INFO", MB_OK); return 0; |