From 8784e4b981c88f051946ed4901f0b91dd0ded5b5 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 5 Aug 2010 04:30:57 +0300 Subject: modified: main.cpp --- modules/example/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/example/main.cpp') diff --git a/modules/example/main.cpp b/modules/example/main.cpp index ecba903..c416393 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -4,6 +4,7 @@ #include //this is necessary, PLUGININFO structure, other related to load/unload plugin code #include //just helper, not necessary #include +#include //database support PLUGINLINK *pluginLink; @@ -46,6 +47,11 @@ extern "C" int __declspec(dllexport) OnModulesLoaded() //load main code from her //some code // TestService(); //same as CallService("Core/Test", 0, 0); Shutdown(); //same as CallService("Core/Shutdown", 0, 0); ,this will shutdown program + DATA dat; + dat.wType = D_INT; + dat.pData = (void*)123; + dat.szSetting = (char*)"some_name"; + dbSetSetting((WPARAM)&pluginInfo, (LPARAM)&dat); return 0; } extern "C" int __declspec(dllexport) Unload() -- cgit v1.2.3