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/NoHistory/src/dllmain.cpp | 4 ++-- plugins/NoHistory/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/NoHistory/src') diff --git a/plugins/NoHistory/src/dllmain.cpp b/plugins/NoHistory/src/dllmain.cpp index 220239f9e4..117144be63 100644 --- a/plugins/NoHistory/src/dllmain.cpp +++ b/plugins/NoHistory/src/dllmain.cpp @@ -261,7 +261,7 @@ static int ModulesLoaded(WPARAM, LPARAM) return 0; } -extern "C" __declspec (dllexport) int Load() +int CMPlugin::Load() { // Ensure that the common control DLL is loaded (for listview) INITCOMMONCONTROLSEX icex = { sizeof(icex), ICC_LISTVIEW_CLASSES }; @@ -281,7 +281,7 @@ extern "C" __declspec (dllexport) int Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec (dllexport) int Unload(void) +int CMPlugin::Unload(void) { RemoveReadEvents(); return 0; diff --git a/plugins/NoHistory/src/stdafx.h b/plugins/NoHistory/src/stdafx.h index 76962ba8f6..5da0cb63ac 100644 --- a/plugins/NoHistory/src/stdafx.h +++ b/plugins/NoHistory/src/stdafx.h @@ -28,6 +28,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; void SrmmMenu_Load(); -- cgit v1.2.3