From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/FloatingContacts/src/main.cpp | 4 ++-- plugins/FloatingContacts/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/FloatingContacts/src') diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp index 99ab507a73..9226ad8fb9 100644 --- a/plugins/FloatingContacts/src/main.cpp +++ b/plugins/FloatingContacts/src/main.cpp @@ -901,7 +901,7 @@ static int OnPreshutdown(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { g_plugin.registerIconW(_A2W(MODULE), g_iconList); LoadMenus(); @@ -927,7 +927,7 @@ extern "C" int __declspec(dllexport) Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload() +int CMPlugin::Unload() { if (hLTEdgesPen) DeleteObject(hLTEdgesPen); diff --git a/plugins/FloatingContacts/src/stdafx.h b/plugins/FloatingContacts/src/stdafx.h index 532c1d94df..253215ba86 100644 --- a/plugins/FloatingContacts/src/stdafx.h +++ b/plugins/FloatingContacts/src/stdafx.h @@ -37,6 +37,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #endif // #ifndef __STDHDR_H__ -- cgit v1.2.3