diff options
Diffstat (limited to 'plugins/QuickContacts')
-rw-r--r-- | plugins/QuickContacts/src/quickcontacts.cpp | 4 | ||||
-rw-r--r-- | plugins/QuickContacts/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/QuickContacts/src/quickcontacts.cpp b/plugins/QuickContacts/src/quickcontacts.cpp index 8c15a2d162..e387eae8be 100644 --- a/plugins/QuickContacts/src/quickcontacts.cpp +++ b/plugins/QuickContacts/src/quickcontacts.cpp @@ -147,7 +147,7 @@ static int EventAdded(WPARAM wparam, LPARAM hDbEvent) return 0;
}
-extern "C" __declspec(dllexport) int Load()
+int CMPlugin::Load()
{
CreateServiceFunction(MS_QC_SHOW_DIALOG, ShowDialog);
@@ -160,7 +160,7 @@ extern "C" __declspec(dllexport) int Load() /////////////////////////////////////////////////////////////////////////////////////////
-extern "C" __declspec(dllexport) int Unload(void)
+int CMPlugin::Unload()
{
FreeContacts();
diff --git a/plugins/QuickContacts/src/stdafx.h b/plugins/QuickContacts/src/stdafx.h index f5abdae0e6..a2d7392f14 100644 --- a/plugins/QuickContacts/src/stdafx.h +++ b/plugins/QuickContacts/src/stdafx.h @@ -56,6 +56,9 @@ Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
//add a new hotkey so it has a default and can be changed in the options dialog
|