From ddf46f560f63f43aedc6464edad759cc3a711d4b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Jun 2012 10:04:16 +0000 Subject: 64-bit compilation issues git-svn-id: http://svn.miranda-ng.org/main/trunk@376 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CyrTranslit/MirandaContact.cpp | 5 ++- plugins/CyrTranslit/MirandaContact.h | 2 +- plugins/CyrTranslit/TransliterationProtocol.cpp | 4 +-- plugins/CyrTranslit/TransliterationProtocol.h | 46 ++++++++++++------------- 4 files changed, 28 insertions(+), 29 deletions(-) (limited to 'plugins/CyrTranslit') diff --git a/plugins/CyrTranslit/MirandaContact.cpp b/plugins/CyrTranslit/MirandaContact.cpp index ca1f959f4b..0906db3769 100644 --- a/plugins/CyrTranslit/MirandaContact.cpp +++ b/plugins/CyrTranslit/MirandaContact.cpp @@ -54,8 +54,7 @@ MirandaContact::~MirandaContact() void MirandaContact::initialize() { - CreateServiceFunction( - MENU_COMMAND_CALLBACK_SERVICE,onMenuCommandTransliterate); + CreateServiceFunction(MENU_COMMAND_CALLBACK_SERVICE,onMenuCommandTransliterate); generateMenuItemsForAllContacts(); HookEvent(ME_CLIST_PREBUILDCONTACTMENU, onPreBuildContactMenu); @@ -148,7 +147,7 @@ void MirandaContact::activateTransliterationProtocolForSubscribedContacts() //------------------------------------------------------------------------------ -int MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam) +INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam) { HANDLE hContact = reinterpret_cast(wParam); if(!CallService(MS_DB_CONTACT_IS, wParam, 0)) return 0; diff --git a/plugins/CyrTranslit/MirandaContact.h b/plugins/CyrTranslit/MirandaContact.h index 4c0106e972..0e29f3d74e 100644 --- a/plugins/CyrTranslit/MirandaContact.h +++ b/plugins/CyrTranslit/MirandaContact.h @@ -83,7 +83,7 @@ private: * @param lParam hwndContactList * @return Always returns 0. */ - static int onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam); + static INT_PTR onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam); /** * This is a service name to bind the onMenuCommandTransliterate() method to diff --git a/plugins/CyrTranslit/TransliterationProtocol.cpp b/plugins/CyrTranslit/TransliterationProtocol.cpp index f6920c465a..b0ba2c12d7 100644 --- a/plugins/CyrTranslit/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/TransliterationProtocol.cpp @@ -97,7 +97,7 @@ void TransliterationProtocol::TranslateMessageA(WPARAM wParam, LPARAM lParam) strcpy(reinterpret_cast(ccs->lParam), txt.c_str()); } -int TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam) +INT_PTR TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); LPARAM oldlParam = ccs->lParam; @@ -113,7 +113,7 @@ int TransliterationProtocol::sendMessageW(WPARAM wParam, LPARAM lParam) } //------------------------------------------------------------------------------ -int TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam) +INT_PTR TransliterationProtocol::sendMessageA(WPARAM wParam, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); LPARAM oldlParam = ccs->lParam; diff --git a/plugins/CyrTranslit/TransliterationProtocol.h b/plugins/CyrTranslit/TransliterationProtocol.h index bc472c4c85..52d9fc0e74 100644 --- a/plugins/CyrTranslit/TransliterationProtocol.h +++ b/plugins/CyrTranslit/TransliterationProtocol.h @@ -31,34 +31,34 @@ namespace CyrTranslit class TransliterationProtocol { public: - /** - * Initializes this protocol on Miranda start-up. - */ - static void initialize(); - - /** - * A call-back function called when a new outgoing message must be - * transferred by this protocol. - * - * @param wParam flags - * @param lParam (LPARAM)(const char*)szMessage - * @return a hProcess corresponding to the one in the ack event. - */ - static int sendMessageA(WPARAM wParam, LPARAM lParam); - static int sendMessageW(WPARAM wParam, LPARAM lParam); + /** + * Initializes this protocol on Miranda start-up. + */ + static void initialize(); + + /** + * A call-back function called when a new outgoing message must be + * transferred by this protocol. + * + * @param wParam flags + * @param lParam (LPARAM)(const char*)szMessage + * @return a hProcess corresponding to the one in the ack event. + */ + static INT_PTR sendMessageA(WPARAM wParam, LPARAM lParam); + static INT_PTR sendMessageW(WPARAM wParam, LPARAM lParam); static void TranslateMessageA(WPARAM wParam, LPARAM lParam); - static void TranslateMessageW(WPARAM wParam, LPARAM lParam); - static void TranslateMessageUTF(WPARAM wParam, LPARAM lParam); - - static void activateForContact(HANDLE hContact); - static void deactivateForContact(HANDLE hContact); + static void TranslateMessageW(WPARAM wParam, LPARAM lParam); + static void TranslateMessageUTF(WPARAM wParam, LPARAM lParam); + + static void activateForContact(HANDLE hContact); + static void deactivateForContact(HANDLE hContact); private: - static char *MODULE_NAME; + static char *MODULE_NAME; - TransliterationProtocol(); - ~TransliterationProtocol(); + TransliterationProtocol(); + ~TransliterationProtocol(); }; } \ No newline at end of file -- cgit v1.2.3