diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-05 04:30:57 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-05 04:30:57 +0300 |
commit | 8784e4b981c88f051946ed4901f0b91dd0ded5b5 (patch) | |
tree | bd6a85b6121b8b3a32a6b0998a20a0871e0f5c49 | |
parent | 3802b40a1b5b6341e4c330d1b37135f5d0dc0933 (diff) |
modified: main.cpp
-rw-r--r-- | modules/example/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <pluginapi.h> //this is necessary, PLUGININFO structure, other related to load/unload plugin code #include <plugin_helper.h> //just helper, not necessary #include <core_services.h> +#include <db.h> //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() |