diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-28 22:38:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-28 22:39:22 +0300 |
commit | ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch) | |
tree | 2fc218f22e6fb28baa5b5efc02ab652daae97d73 /plugins/DbEditorPP | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r-- | plugins/DbEditorPP/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/DbEditorPP/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index 6f619ede17..97f9f267af 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -169,7 +169,7 @@ static INT_PTR ImportFromFile(WPARAM wParam, LPARAM lParam) return 0;
}
-extern "C" __declspec(dllexport) int Load(void)
+int CMPlugin::Load()
{
hwnd2mainWindow = nullptr;
@@ -197,7 +197,7 @@ extern "C" __declspec(dllexport) int Load(void) /////////////////////////////////////////////////////////////////////////////////////////
-extern "C" __declspec(dllexport) int Unload(void)
+int CMPlugin::Unload()
{
freeAllWatches();
return 0;
diff --git a/plugins/DbEditorPP/src/stdafx.h b/plugins/DbEditorPP/src/stdafx.h index ce5058594e..1b0b9c586f 100644 --- a/plugins/DbEditorPP/src/stdafx.h +++ b/plugins/DbEditorPP/src/stdafx.h @@ -50,6 +50,9 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#define msg(a) MessageBox(hwnd2mainWindow,a,_A2T(modFullname),MB_OK)
|