From 35d4044e1958d2cd68553837a0da0829bd3b98f4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 23 Jul 2012 20:25:27 +0000 Subject: SeenPlugin: now use precompiled header git-svn-id: http://svn.miranda-ng.org/main/trunk@1140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SeenPlugin/seenplugin_10.vcxproj | 16 +++++++++++++--- plugins/SeenPlugin/src/history.cpp | 2 +- plugins/SeenPlugin/src/seen.h | 13 +++++-------- plugins/SeenPlugin/src/userinfo.cpp | 2 +- plugins/SeenPlugin/src/utils.cpp | 8 ++++---- 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/plugins/SeenPlugin/seenplugin_10.vcxproj b/plugins/SeenPlugin/seenplugin_10.vcxproj index 4e83e465ef..5873a871c2 100644 --- a/plugins/SeenPlugin/seenplugin_10.vcxproj +++ b/plugins/SeenPlugin/seenplugin_10.vcxproj @@ -75,10 +75,12 @@ OnlyExplicitInline Size ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) + WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true Level3 + Use + seen.h NDEBUG;%(PreprocessorDefinitions) @@ -102,10 +104,12 @@ OnlyExplicitInline Size ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN64;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) + WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true true Level3 + Use + seen.h NDEBUG;%(PreprocessorDefinitions) @@ -133,6 +137,8 @@ MultiThreadedDebugDLL Level3 EditAndContinue + Use + seen.h _DEBUG;%(PreprocessorDefinitions) @@ -156,6 +162,8 @@ EnableFastChecks MultiThreadedDebugDLL Level3 + Use + seen.h _DEBUG;%(PreprocessorDefinitions) @@ -174,7 +182,9 @@ - + + Create + diff --git a/plugins/SeenPlugin/src/history.cpp b/plugins/SeenPlugin/src/history.cpp index 724cfd5612..fa90264fda 100644 --- a/plugins/SeenPlugin/src/history.cpp +++ b/plugins/SeenPlugin/src/history.cpp @@ -34,7 +34,7 @@ char* BuildSetting(int historyLast) { static char sztemp[15]; *setting = '\0'; strcat(setting, "History_"); - strcat(setting, itoa(historyLast, sztemp, 10)); + strcat(setting, _itot(historyLast, sztemp, 10)); return setting; } diff --git a/plugins/SeenPlugin/src/seen.h b/plugins/SeenPlugin/src/seen.h index ba2b13a6c2..574126459d 100644 --- a/plugins/SeenPlugin/src/seen.h +++ b/plugins/SeenPlugin/src/seen.h @@ -16,19 +16,17 @@ 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -File name : $URL: http://svn.berlios.de/svnroot/repos/mgoodies/trunk/lastseen-mod/seen.h $ -Revision : $Rev: 1570 $ -Last change on : $Date: 2007-12-30 01:30:07 +0300 (Вс, 30 дек 2007) $ -Last change by : $Author: y_b $ */ + #ifndef _WIN32_IE #define _WIN32_IE 0x0300 #endif #define ETDT_ENABLE 0x00000002 #define ETDT_USETABTEXTURE 0x00000004 #define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE) + #define MIRANDA_VER 0x0A00 +#define _CRT_SECURE_NO_WARNINGS #include #include @@ -37,25 +35,24 @@ Last change by : $Author: y_b $ #include #include "resource.h" + #include #include #include - #include #include #include #include #include #include -#include #include #include #include #include #include -#include #include "m_tipper.h" + WCHAR *any_to_IdleNotidleUnknown(HANDLE hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen); WCHAR *any_to_Idle(HANDLE hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen); diff --git a/plugins/SeenPlugin/src/userinfo.cpp b/plugins/SeenPlugin/src/userinfo.cpp index 442860bb86..48d6523818 100644 --- a/plugins/SeenPlugin/src/userinfo.cpp +++ b/plugins/SeenPlugin/src/userinfo.cpp @@ -59,7 +59,7 @@ INT_PTR CALLBACK UserinfoDlgProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam) case WM_INITDIALOG: MainProc=(WNDPROC)SetWindowLongPtr(GetDlgItem(hdlg,IDC_INFOTEXT),GWLP_WNDPROC,(LONG)EditProc); - szout=strdup(ParseString((!DBGetContactSetting(NULL,S_MOD,"UserStamp",&dbv)?dbv.pszVal:DEFAULT_USERSTAMP),(HANDLE)lparam,0)); + szout = _strdup(ParseString((!DBGetContactSetting(NULL,S_MOD,"UserStamp",&dbv)?dbv.pszVal:DEFAULT_USERSTAMP),(HANDLE)lparam,0)); SetDlgItemText(hdlg,IDC_INFOTEXT,szout); if (!strcmp(szout,Translate(""))) EnableWindow(GetDlgItem(hdlg,IDC_INFOTEXT),FALSE); diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index d989f9e999..279541907f 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -299,16 +299,16 @@ LBL_charPtr: switch(ci.type) { case CNFT_BYTE: - ltoa(ci.bVal,szdbsetting,10); + _ltot(ci.bVal, szdbsetting, 10); break; case CNFT_WORD: - ltoa(ci.wVal,szdbsetting,10); + _ltot(ci.wVal, szdbsetting, 10); break; case CNFT_DWORD: - ltoa(ci.dVal,szdbsetting,10); + _ltot(ci.dVal, szdbsetting, 10); break; case CNFT_ASCIIZ: - strcpy(szdbsetting,ci.pszVal); + strcpy(szdbsetting, ci.pszVal); break; } -- cgit v1.2.3