From 46879a24aa0e45ec0ea1ddf27f28ce68edd5e561 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Sun, 27 Nov 2011 22:52:32 +0000 Subject: another part of small project fixes git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@224 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- Console/Console.c | 20 +++++++-------- Console/Console.vcxproj | 65 +++++++++++++++++++++++++------------------------ 2 files changed, 43 insertions(+), 42 deletions(-) (limited to 'Console') diff --git a/Console/Console.c b/Console/Console.c index 7a05aed..96e56fa 100644 --- a/Console/Console.c +++ b/Console/Console.c @@ -116,7 +116,7 @@ static HANDLE hMenu = NULL; static void LoadSettings(); static void ShowConsole(int show); -static int ShowHideConsole(WPARAM wParam, LPARAM lParam); +static INT_PTR ShowHideConsole(WPARAM wParam, LPARAM lParam); static int Openfile(TCHAR *outputFile, int selection); //////////////////////////////////////////////////////////////////////////////// @@ -126,13 +126,13 @@ static HBITMAP BmpUp = NULL; static HBITMAP BmpDn = NULL; static HANDLE hTTBButt = 0; -static int HideConsoleButt(WPARAM wParam,LPARAM lParam) +static INT_PTR HideConsoleButt(WPARAM wParam,LPARAM lParam) { ShowConsole(0); return 0; } -static int ShowConsoleButt(WPARAM wParam,LPARAM lParam) +static INT_PTR ShowConsoleButt(WPARAM wParam,LPARAM lParam) { ShowConsole(1); return 0; @@ -231,7 +231,7 @@ static void ShowConsole(int show) //////////////////////////////////////////////////////////////////////////////// -static int ShowHideConsole(WPARAM wParam, LPARAM lParam) +static INT_PTR ShowHideConsole(WPARAM wParam, LPARAM lParam) { if (hwndConsole) ShowConsole(!IsWindowVisible(hwndConsole)); @@ -376,7 +376,7 @@ static LRESULT CALLBACK SubclassProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lPa //////////////////////////////////////////////////////////////////////////////// -static BOOL CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam) +static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam) { LOGWIN *dat = (LOGWIN*)GetWindowLong(hwndDlg, GWLP_USERDATA); @@ -489,7 +489,7 @@ static BOOL CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM l while (str != NULL) { lvi.pszText = &str[0]; - tmplen = len = _tcslen(lvi.pszText); + tmplen = len = (DWORD)_tcslen(lvi.pszText); while(len > wraplen) { @@ -711,7 +711,7 @@ int ConsoleResize(HWND hwnd,LPARAM lParam,UTILRESIZECONTROL *urc) } -static BOOL CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam) +static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam) { switch(message) { case WM_INITDIALOG: @@ -1065,8 +1065,8 @@ static int OnFastDump(WPARAM wParam,LPARAM lParam) if ( pActive ) { LOGMSG *logMsg = (LOGMSG*)lParam; - DWORD headlen = strlen(logMsg->pszHead); - DWORD msglen = strlen(logMsg->pszMsg); + DWORD headlen = (DWORD)strlen(logMsg->pszHead); + DWORD msglen = (DWORD)strlen(logMsg->pszMsg); DWORD len = (headlen + msglen + 1) * sizeof(TCHAR) + sizeof(DUMPMSG); DUMPMSG *dumpMsg = (DUMPMSG*)malloc( len ); TCHAR *str = dumpMsg->szMsg; @@ -1151,7 +1151,7 @@ static void SaveSettings(HWND hwndDlg) } -static BOOL CALLBACK OptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK OptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_INITDIALOG: diff --git a/Console/Console.vcxproj b/Console/Console.vcxproj index 83e9903..3c1b7f4 100644 --- a/Console/Console.vcxproj +++ b/Console/Console.vcxproj @@ -137,6 +137,14 @@ $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ $(SolutionDir)$(Configuration)/Plugins\ $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ + $(SolutionDir)\$(Configuration) $(Platform)/Plugins\ + $(SolutionDir)\$(Configuration) $(Platform)/Obj/$(ProjectName)\ + $(SolutionDir)\$(Configuration) $(Platform)/Plugins\ + $(SolutionDir)\$(Configuration) $(Platform)/Obj/$(ProjectName)\ + $(SolutionDir)\$(Configuration) $(Platform)/Plugins\ + $(SolutionDir)\$(Configuration) $(Platform)/Obj/$(ProjectName)\ + $(SolutionDir)\$(Configuration) $(Platform)/Plugins\ + $(SolutionDir)\$(Configuration) $(Platform)/Obj/$(ProjectName)\ @@ -177,6 +185,7 @@ MachineX86 + $(IntDir)$(TargetName).lib @@ -193,13 +202,9 @@ ../include;../ExternalAPI;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;Console_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks - MultiThreadedDebugDLL + MultiThreadedDebug Use Commonheaders.h - .\Debug/Console.pch - .\Debug/ - .\Debug/ - .\Debug/ true Level3 true @@ -212,16 +217,13 @@ ../include;../ExternalAPI;%(AdditionalIncludeDirectories) - ../../Bin/Debug/plugins/Console.dll true true - .\Debug/Console.pdb true - .\Debug/Console.map false - .\Debug/Console.lib + $(IntDir)$(TargetName).lib @@ -251,6 +253,7 @@ true Default Size + true NDEBUG;%(PreprocessorDefinitions) @@ -268,6 +271,8 @@ true true + $(IntDir)$(TargetName).lib + UseLinkTimeCodeGeneration @@ -285,18 +290,16 @@ ../include;../ExternalAPI;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;Console_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true - MultiThreadedDLL + MultiThreaded true Use Commonheaders.h - .\Release/Console.pch - .\Release/ - .\Release/ - .\Release/ true Level3 true Default + Size + true NDEBUG;%(PreprocessorDefinitions) @@ -304,16 +307,17 @@ ../include;../ExternalAPI;%(AdditionalIncludeDirectories) - ../../bin/release/plugins/Console.dll true - .\Release/Console.pdb true false - .\Release/Console.lib + $(IntDir)$(TargetName).lib + true + true + UseLinkTimeCodeGeneration @@ -355,6 +359,7 @@ MachineX86 + $(IntDir)$(TargetName).lib @@ -371,13 +376,9 @@ ../include;../ExternalAPI;%(AdditionalIncludeDirectories) _UNICODE;WIN32;_DEBUG;_WINDOWS;_USRDLL;Console_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks - MultiThreadedDebugDLL + MultiThreadedDebug Use Commonheaders.h - .\Debug/Console.pch - .\Debug/ - .\Debug/ - .\Debug/ true Level3 true @@ -390,16 +391,13 @@ ../include;../ExternalAPI;%(AdditionalIncludeDirectories) - ../../Bin/Debug Unicode/plugins/Console.dll true true - .\Debug/Console.pdb true - .\Debug/Console.map false - .\Debug/Console.lib + $(IntDir)$(TargetName).lib @@ -429,6 +427,7 @@ true Default Size + true NDEBUG;%(PreprocessorDefinitions) @@ -446,6 +445,8 @@ true true + $(IntDir)$(TargetName).lib + UseLinkTimeCodeGeneration @@ -467,15 +468,13 @@ true Use Commonheaders.h - .\Release/Console.pch - .\Release/ - .\Release/ - .\Release/ true Level3 true Default true + Size + true NDEBUG;%(PreprocessorDefinitions) @@ -484,14 +483,16 @@ true - .\Release/Console.pdb true false - .\Release/Console.lib + $(IntDir)$(TargetName).lib + true + true + UseLinkTimeCodeGeneration -- cgit v1.2.3