summaryrefslogtreecommitdiff
path: root/plugins/example/main.cpp
diff options
context:
space:
mode:
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