From d41cb4808c648d458be7615d6a72003e3614538d Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 24 Apr 2015 21:10:03 +0000 Subject: AssocMgr - common project git-svn-id: http://svn.miranda-ng.org/main/trunk@13109 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AssocMgr/assocmgr.vcxproj | 28 +++++++++++++++++++ plugins/AssocMgr/assocmgr.vcxproj.filters | 4 +++ plugins/AssocMgr/assocmgr_10.vcxproj | 12 ++++---- plugins/AssocMgr/assocmgr_10.vcxproj.user | 3 ++ plugins/AssocMgr/assocmgr_12.vcxproj | 12 ++++---- plugins/AssocMgr/src/assoclist.cpp | 2 +- plugins/AssocMgr/src/common.h | 46 ------------------------------- plugins/AssocMgr/src/dde.cpp | 2 +- plugins/AssocMgr/src/main.cpp | 6 ++-- plugins/AssocMgr/src/reg.cpp | 2 +- plugins/AssocMgr/src/stdafx.cpp | 18 ------------ plugins/AssocMgr/src/stdafx.cxx | 18 ++++++++++++ plugins/AssocMgr/src/stdafx.h | 44 +++++++++++++++++++++++++++++ plugins/AssocMgr/src/test.cpp | 2 +- plugins/AssocMgr/src/utils.cpp | 2 +- 15 files changed, 117 insertions(+), 84 deletions(-) create mode 100644 plugins/AssocMgr/assocmgr.vcxproj create mode 100644 plugins/AssocMgr/assocmgr.vcxproj.filters create mode 100644 plugins/AssocMgr/assocmgr_10.vcxproj.user delete mode 100644 plugins/AssocMgr/src/common.h delete mode 100644 plugins/AssocMgr/src/stdafx.cpp create mode 100644 plugins/AssocMgr/src/stdafx.cxx create mode 100644 plugins/AssocMgr/src/stdafx.h (limited to 'plugins/AssocMgr') diff --git a/plugins/AssocMgr/assocmgr.vcxproj b/plugins/AssocMgr/assocmgr.vcxproj new file mode 100644 index 0000000000..895996cde7 --- /dev/null +++ b/plugins/AssocMgr/assocmgr.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + AssocMgr + {B57D997C-73E1-D5F7-ECCA-C204345C04A3} + + + + + \ No newline at end of file diff --git a/plugins/AssocMgr/assocmgr.vcxproj.filters b/plugins/AssocMgr/assocmgr.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/AssocMgr/assocmgr.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/AssocMgr/assocmgr_10.vcxproj b/plugins/AssocMgr/assocmgr_10.vcxproj index fd3b49ef01..487a4b1bd5 100644 --- a/plugins/AssocMgr/assocmgr_10.vcxproj +++ b/plugins/AssocMgr/assocmgr_10.vcxproj @@ -81,7 +81,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks Use - common.h + stdafx.h false @@ -110,7 +110,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks Use - common.h + stdafx.h false @@ -139,7 +139,7 @@ NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Size Use - common.h + stdafx.h false @@ -171,7 +171,7 @@ NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Size Use - common.h + stdafx.h false @@ -195,7 +195,7 @@ - + Create @@ -205,12 +205,12 @@ - + diff --git a/plugins/AssocMgr/assocmgr_10.vcxproj.user b/plugins/AssocMgr/assocmgr_10.vcxproj.user new file mode 100644 index 0000000000..695b5c78b9 --- /dev/null +++ b/plugins/AssocMgr/assocmgr_10.vcxproj.user @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/plugins/AssocMgr/assocmgr_12.vcxproj b/plugins/AssocMgr/assocmgr_12.vcxproj index 9c2b02d30f..d2631a31a1 100644 --- a/plugins/AssocMgr/assocmgr_12.vcxproj +++ b/plugins/AssocMgr/assocmgr_12.vcxproj @@ -85,7 +85,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks Use - common.h + stdafx.h false @@ -115,7 +115,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks Use - common.h + stdafx.h false @@ -144,7 +144,7 @@ NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Size Use - common.h + stdafx.h false @@ -175,7 +175,7 @@ NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Size Use - common.h + stdafx.h false @@ -198,7 +198,7 @@ - + Create @@ -208,12 +208,12 @@ - + diff --git a/plugins/AssocMgr/src/assoclist.cpp b/plugins/AssocMgr/src/assoclist.cpp index cc343e2f45..b941acf106 100644 --- a/plugins/AssocMgr/src/assoclist.cpp +++ b/plugins/AssocMgr/src/assoclist.cpp @@ -19,7 +19,7 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softw Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Options */ extern HINSTANCE hInst; diff --git a/plugins/AssocMgr/src/common.h b/plugins/AssocMgr/src/common.h deleted file mode 100644 index c7ea172927..0000000000 --- a/plugins/AssocMgr/src/common.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - -'File Association Manager'-Plugin for Miranda IM - -Copyright (C) 2005-2007 H. Herkenrath - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program (AssocMgr-License.txt); if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -*/ - -#define _CRT_SECURE_NO_WARNINGS -#define _WIN32_WINNT 0x0600 -#include /* for SHChangeNotify() */ -#include -#include -#include - -#include -#include -#include -#include -#include -#include "win2k.h" - -#define ASSOCMGR_NOHELPERFUNCTIONS - -#include "m_assocmgr.h" - -#include "utils.h" -#include "reg.h" -#include "assoclist.h" -#include "dde.h" -#include "test.h" -#include "resource.h" -#include "version.h" diff --git a/plugins/AssocMgr/src/dde.cpp b/plugins/AssocMgr/src/dde.cpp index 5ffc17add7..5fb674b22a 100644 --- a/plugins/AssocMgr/src/dde.cpp +++ b/plugins/AssocMgr/src/dde.cpp @@ -19,7 +19,7 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /* Conversation */ extern HINSTANCE hInst; diff --git a/plugins/AssocMgr/src/main.cpp b/plugins/AssocMgr/src/main.cpp index fcf1d3543e..4d57f89a76 100644 --- a/plugins/AssocMgr/src/main.cpp +++ b/plugins/AssocMgr/src/main.cpp @@ -19,7 +19,7 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" HINSTANCE hInst; static HANDLE hHookModulesLoaded; @@ -39,7 +39,7 @@ PLUGININFOEX pluginInfo = { {0x52685cd7, 0xec7, 0x44c1, {0xa1, 0xa6, 0x38, 0x16, 0x12, 0x41, 0x82, 0x2}} }; -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; @@ -82,7 +82,7 @@ static int AssocMgrModulesLoaded(WPARAM,LPARAM) return 0; } -extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } diff --git a/plugins/AssocMgr/src/reg.cpp b/plugins/AssocMgr/src/reg.cpp index 0dcb9eae85..5ebba3dea9 100644 --- a/plugins/AssocMgr/src/reg.cpp +++ b/plugins/AssocMgr/src/reg.cpp @@ -19,7 +19,7 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" extern HINSTANCE hInst; diff --git a/plugins/AssocMgr/src/stdafx.cpp b/plugins/AssocMgr/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/plugins/AssocMgr/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "common.h" \ No newline at end of file diff --git a/plugins/AssocMgr/src/stdafx.cxx b/plugins/AssocMgr/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/AssocMgr/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/AssocMgr/src/stdafx.h b/plugins/AssocMgr/src/stdafx.h new file mode 100644 index 0000000000..89cf724b45 --- /dev/null +++ b/plugins/AssocMgr/src/stdafx.h @@ -0,0 +1,44 @@ +/* + +'File Association Manager'-Plugin for Miranda IM + +Copyright (C) 2005-2007 H. Herkenrath + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program (AssocMgr-License.txt); if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#include /* for SHChangeNotify() */ +#include +#include +#include + +#include +#include +#include +#include +#include +#include "win2k.h" + +#define ASSOCMGR_NOHELPERFUNCTIONS + +#include "m_assocmgr.h" + +#include "utils.h" +#include "reg.h" +#include "assoclist.h" +#include "dde.h" +#include "test.h" +#include "resource.h" +#include "version.h" diff --git a/plugins/AssocMgr/src/test.cpp b/plugins/AssocMgr/src/test.cpp index 70642bd272..f5c404fcc1 100644 --- a/plugins/AssocMgr/src/test.cpp +++ b/plugins/AssocMgr/src/test.cpp @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // -- Includes -#include "common.h" +#include "stdafx.h" /* #define AIM_SUPPORT_TEST diff --git a/plugins/AssocMgr/src/utils.cpp b/plugins/AssocMgr/src/utils.cpp index d1d5dad270..5c6d08da24 100644 --- a/plugins/AssocMgr/src/utils.cpp +++ b/plugins/AssocMgr/src/utils.cpp @@ -19,7 +19,7 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "common.h" +#include "stdafx.h" /************************* String Conv ****************************/ -- cgit v1.2.3