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/QuickContacts/src/quickcontacts.cpp | 4 ++-- plugins/QuickContacts/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/QuickContacts') diff --git a/plugins/QuickContacts/src/quickcontacts.cpp b/plugins/QuickContacts/src/quickcontacts.cpp index 8c15a2d162..e387eae8be 100644 --- a/plugins/QuickContacts/src/quickcontacts.cpp +++ b/plugins/QuickContacts/src/quickcontacts.cpp @@ -147,7 +147,7 @@ static int EventAdded(WPARAM wparam, LPARAM hDbEvent) return 0; } -extern "C" __declspec(dllexport) int Load() +int CMPlugin::Load() { CreateServiceFunction(MS_QC_SHOW_DIALOG, ShowDialog); @@ -160,7 +160,7 @@ extern "C" __declspec(dllexport) int Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Unload(void) +int CMPlugin::Unload() { FreeContacts(); diff --git a/plugins/QuickContacts/src/stdafx.h b/plugins/QuickContacts/src/stdafx.h index f5abdae0e6..a2d7392f14 100644 --- a/plugins/QuickContacts/src/stdafx.h +++ b/plugins/QuickContacts/src/stdafx.h @@ -56,6 +56,9 @@ Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; //add a new hotkey so it has a default and can be changed in the options dialog -- cgit v1.2.3