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/mTextControl/src/main.cpp | 4 ++-- plugins/mTextControl/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/mTextControl') diff --git a/plugins/mTextControl/src/main.cpp b/plugins/mTextControl/src/main.cpp index 62640c1a58..44c04969cb 100644 --- a/plugins/mTextControl/src/main.cpp +++ b/plugins/mTextControl/src/main.cpp @@ -50,7 +50,7 @@ CMPlugin::CMPlugin() : ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { MyCreateTextServices = nullptr; hMsfteditDll = LoadLibrary(L"msftedit.dll"); @@ -67,7 +67,7 @@ extern "C" __declspec(dllexport) int Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Unload(void) +int CMPlugin::Unload() { UnloadTextUsers(); UnloadRichEdit(); diff --git a/plugins/mTextControl/src/stdafx.h b/plugins/mTextControl/src/stdafx.h index b9ddc388dc..2edf57f236 100644 --- a/plugins/mTextControl/src/stdafx.h +++ b/plugins/mTextControl/src/stdafx.h @@ -57,6 +57,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #endif // __headers_h__ -- cgit v1.2.3