From 0dae041269e8abcd25f5155f4e33a5198e498147 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 2 Aug 2010 10:08:38 +0300 Subject: modified: main.cpp --- modules/example/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/example/main.cpp') 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 -#include -#include +#include //this is necessary, PLUGININFO structure, other related to load/unload plugin code +#include //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; -- cgit v1.2.3