summaryrefslogtreecommitdiff
path: root/plugins/example/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-03-17 21:08:25 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2011-03-17 21:08:25 +0200
commit4c917f2e2a43ea50cd287dd322dda9d08b213b7d (patch)
treec990c65226c78a2ee6595c05a3b2be36755d5b8f /plugins/example/main.cpp
parentee695f119bbc7b3f1557ab01b7953de2ca03e00b (diff)
modified: api/ec_pluginapi.h
modified: api/ec_services.h modified: core/events.cpp modified: core/events.h modified: core/globals.h modified: core/main.cpp modified: core/modules.cpp modified: core/modules.h modified: plugins/example/main.cpp
Diffstat (limited to 'plugins/example/main.cpp')
-rw-r--r--plugins/example/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/example/main.cpp b/plugins/example/main.cpp
index bd1f65b..c556d47 100644
--- a/plugins/example/main.cpp
+++ b/plugins/example/main.cpp
@@ -7,6 +7,7 @@
PLUGINLINK *pluginLink;
+extern PLUGININFO pluginInfo;
#define CallService(service, param) pluginLink->CallService(service,param)
@@ -27,6 +28,11 @@ bool wxPluginForEvilCore::OnInit()
wxSnprintf(msg, 31, _T("Core version is %d."), core_version);
wxMessageBox(msg, _T("Info"), wxOK | wxICON_INFORMATION);
}
+ {
+ wxChar msg [32];
+ wxSnprintf(msg, 31, _T("I have obtained special id %d from core"), pluginInfo.pluginid); //we must obtain special plugin id for calling services like raise event or so.
+ wxMessageBox(msg, _T("Info"), wxOK | wxICON_INFORMATION);
+ }
return true;
}
@@ -41,12 +47,12 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) /
PLUGININFO pluginInfo =
{
- sizeof(PLUGININFO), //size of structure
+// sizeof(PLUGININFO), //size of structure
(wchar_t*)L"example plugin", //name
0, //description
0, //author
0, //author email
- 0x00010101 //version 0.1.1.1
+ 0x0001010d //version 0.1.1.13
};
#ifdef _WIN32