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/Weather/src/stdafx.h | 3 +++ plugins/Weather/src/weather.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/stdafx.h b/plugins/Weather/src/stdafx.h index c197c848cf..a33b89e6d3 100644 --- a/plugins/Weather/src/stdafx.h +++ b/plugins/Weather/src/stdafx.h @@ -522,5 +522,8 @@ void ReleaseIconEx(HICON hIcon); struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp index ae7244b902..30907b648f 100644 --- a/plugins/Weather/src/weather.cpp +++ b/plugins/Weather/src/weather.cpp @@ -154,7 +154,7 @@ void InitVar() ModuleLoaded = FALSE; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { // initialize global variables InitVar(); @@ -211,7 +211,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// // unload function -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { DestroyMwin(); DestroyWindow(hPopupWindow); -- cgit v1.2.3