From 4c917f2e2a43ea50cd287dd322dda9d08b213b7d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 17 Mar 2011 21:08:25 +0200 Subject: 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 --- plugins/example/main.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/example') 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 -- cgit v1.2.3