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/UserGuide/src/main.cpp | 9 +-------- plugins/UserGuide/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/UserGuide') diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp index 4da5867c59..156ee338eb 100644 --- a/plugins/UserGuide/src/main.cpp +++ b/plugins/UserGuide/src/main.cpp @@ -65,7 +65,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) return 0; } -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { CMenuItem mi(g_plugin); SET_UID(mi, 0x6787c12d, 0xdc85, 0x409d, 0xaa, 0x6c, 0x1f, 0xfe, 0x5f, 0xe8, 0xc1, 0x18); @@ -79,10 +79,3 @@ extern "C" __declspec(dllexport) int Load(void) CreateServiceFunction(mi.pszService, ShowGuideFile); return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" __declspec(dllexport) int Unload(void) -{ - return 0; -} diff --git a/plugins/UserGuide/src/stdafx.h b/plugins/UserGuide/src/stdafx.h index 55f9f3cd00..f49d8e7c33 100644 --- a/plugins/UserGuide/src/stdafx.h +++ b/plugins/UserGuide/src/stdafx.h @@ -14,4 +14,6 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; -- cgit v1.2.3