From 9aaad18e0849c2bf92b8d4ac19c5e180b8c545ba Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sat, 5 May 2012 18:16:47 +0000 Subject: QuickReplies: x64 compilation fix git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@297 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- QuickReplies/common.h | 11 +++-- QuickReplies/events.cpp | 6 +-- QuickReplies/options.cpp | 4 +- QuickReplies/quickreplies_10.vcxproj | 84 ++++++------------------------------ 4 files changed, 23 insertions(+), 82 deletions(-) (limited to 'QuickReplies') diff --git a/QuickReplies/common.h b/QuickReplies/common.h index d21be34..026f4c5 100644 --- a/QuickReplies/common.h +++ b/QuickReplies/common.h @@ -21,8 +21,7 @@ Boston, MA 02111-1307, USA. #ifndef __QUICK_REPLY_H__ #define __QUICK_REPLY_H__ -#define MIRANDA_VER 0x0900 -#define MIRANDA_CUSTOM_LP +#define MIRANDA_VER 0x0A00 #include #include @@ -68,9 +67,9 @@ extern HANDLE hOnPreShutdown; INT_PTR QuickRepliesService(WPARAM wParam, LPARAM lParam); -INT_PTR OnModulesLoaded(WPARAM wParam, LPARAM lParam); -INT_PTR OnOptInitialized(WPARAM wParam, LPARAM lParam); -INT_PTR OnButtonPressed(WPARAM wParam, LPARAM lParam); -INT_PTR OnPreShutdown(WPARAM wParam, LPARAM lParam); +INT OnModulesLoaded(WPARAM wParam, LPARAM lParam); +INT OnOptInitialized(WPARAM wParam, LPARAM lParam); +INT OnButtonPressed(WPARAM wParam, LPARAM lParam); +INT OnPreShutdown(WPARAM wParam, LPARAM lParam); #endif //__QUICK_REPLY_H__ \ No newline at end of file diff --git a/QuickReplies/events.cpp b/QuickReplies/events.cpp index 1dfa8c8..25c9fb6 100644 --- a/QuickReplies/events.cpp +++ b/QuickReplies/events.cpp @@ -32,7 +32,7 @@ INT_PTR QuickRepliesService(WPARAM, LPARAM) return TRUE; } -INT_PTR OnModulesLoaded(WPARAM wParam, LPARAM lParam) +INT OnModulesLoaded(WPARAM wParam, LPARAM lParam) { UnhookEvent(hOnModulesLoaded); HICON hIcon = NULL; @@ -90,7 +90,7 @@ INT_PTR OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0; } -INT_PTR OnButtonPressed(WPARAM wParam, LPARAM lParam) +INT OnButtonPressed(WPARAM wParam, LPARAM lParam) { char key[64]; int index = 0; @@ -175,7 +175,7 @@ INT_PTR OnButtonPressed(WPARAM wParam, LPARAM lParam) return 1; } -INT_PTR OnPreShutdown(WPARAM wParam, LPARAM lParam) +INT OnPreShutdown(WPARAM wParam, LPARAM lParam) { if (ServiceExists(MS_BB_REMOVEBUTTON)) { diff --git a/QuickReplies/options.cpp b/QuickReplies/options.cpp index 3677688..2ae4d27 100644 --- a/QuickReplies/options.cpp +++ b/QuickReplies/options.cpp @@ -186,7 +186,7 @@ BOOL CALLBACK DlgProcOptionsPage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM static UINT expertOnlyControls[] = { IDC_VARIABLES, IDC_VARIABLES_HINT }; -INT_PTR OnOptInitialized(WPARAM wParam, LPARAM lParam) +INT OnOptInitialized(WPARAM wParam, LPARAM lParam) { TCHAR tabName[32]; mir_sntprintf(tabName, SIZEOF(tabName), _T("Button %x"), iNumber + 1); @@ -205,7 +205,7 @@ INT_PTR OnOptInitialized(WPARAM wParam, LPARAM lParam) odp.nExpertOnlyControls = SIZEOF(expertOnlyControls); odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_PAGE); - odp.pfnDlgProc = DlgProcOptionsPage; + odp.pfnDlgProc = (DLGPROC)DlgProcOptionsPage; CallService(MS_OPT_ADDPAGE, wParam, (LPARAM)&odp); diff --git a/QuickReplies/quickreplies_10.vcxproj b/QuickReplies/quickreplies_10.vcxproj index 6223584..d6f0813 100644 --- a/QuickReplies/quickreplies_10.vcxproj +++ b/QuickReplies/quickreplies_10.vcxproj @@ -26,23 +26,19 @@ DynamicLibrary - false Unicode DynamicLibrary - false Unicode true DynamicLibrary - false Unicode DynamicLibrary - false Unicode true @@ -66,16 +62,12 @@ <_ProjectFileVersion>10.0.30319.1 $(SolutionDir)$(Configuration)/Plugins\ $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ - true $(SolutionDir)$(Configuration)/Plugins\ $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ - true $(SolutionDir)$(Configuration)64/Plugins\ $(SolutionDir)$(Configuration)64/Obj/$(ProjectName)\ - true $(SolutionDir)$(Configuration)64/Plugins\ $(SolutionDir)$(Configuration)64/Obj/$(ProjectName)\ - true AllRules.ruleset @@ -103,41 +95,28 @@ Full OnlyExplicitInline Size - true ../../include;../ExternalAPI;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;quickreplies_EXPORTS;UNICODE;%(PreprocessorDefinitions) true false true Fast - false - - - - - - Level3 - ProgramDatabase - CompileAsCpp 4996;%(DisableSpecificWarnings) MultiThreadedDLL NDEBUG;%(PreprocessorDefinitions) - %(AdditionalIncludeDirectories) + ..\..\include\msapi - comctl32.lib;gdiplus.lib;%(AdditionalDependencies) - %(AdditionalManifestDependencies) + comctl32.lib;%(AdditionalDependencies) true true - UseLinkTimeCodeGeneration false - - $(IntDir)$(TargetName).lib - MachineX86 + true + Windows @@ -159,31 +138,22 @@ MultiThreadedDebug true Fast - - - - - - Level3 EditAndContinue - Default 4996;%(DisableSpecificWarnings) _DEBUG;%(PreprocessorDefinitions) - %(AdditionalIncludeDirectories) + ..\..\include\msapi - comctl32.lib;gdiplus.lib;%(AdditionalDependencies) + comctl32.lib;%(AdditionalDependencies) true false - - $(IntDir)$(TargetName).lib - MachineX86 + Windows @@ -200,42 +170,28 @@ Full OnlyExplicitInline Size - true ../../include;../ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;quickreplies_EXPORTS;UNICODE;%(PreprocessorDefinitions) + WIN64;NDEBUG;_WINDOWS;_USRDLL;quickreplies_EXPORTS;UNICODE;%(PreprocessorDefinitions) true MultiThreadedDLL false true Fast - false - - - - Level3 - true - ProgramDatabase - Default 4996;%(DisableSpecificWarnings) NDEBUG;%(PreprocessorDefinitions) - 0x0809 - ../../include;../ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include\msapi comctl32.lib;%(AdditionalDependencies) - type=%27Win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 processorArchitecture=%27X86%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27;%(AdditionalManifestDependencies) true true true - UseLinkTimeCodeGeneration false - - $(IntDir)$(TargetName).lib - MachineX64 + Windows @@ -251,41 +207,27 @@ Disabled ../../include;../ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;quickreplies_EXPORTS;UNICODE;%(PreprocessorDefinitions) + WIN64;_DEBUG;_WINDOWS;_USRDLL;quickreplies_EXPORTS;UNICODE;%(PreprocessorDefinitions) false EnableFastChecks MultiThreadedDebug true Fast - - - $(IntDir)$(ProjectName).pch - - Level3 - true - ProgramDatabase - Default 4996;%(DisableSpecificWarnings) _DEBUG;%(PreprocessorDefinitions) - 0x0809 - ../../include;../ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include\msapi comctl32.lib;%(AdditionalDependencies) - true true - $(TargetDir)$(TargetName).pdb - false false - - $(IntDir)$(TargetName).lib - MachineX64 + Windows -- cgit v1.2.3