From 66a56e980af1a828d1fb5af2377c4c7610076b5b Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 24 Apr 2013 07:12:08 +0000 Subject: added messagebox text git-svn-id: http://svn.miranda-ng.org/main/trunk@4522 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp index 9f080883bb..a385020a33 100644 --- a/protocols/Skype/src/skype.cpp +++ b/protocols/Skype/src/skype.cpp @@ -257,19 +257,22 @@ int StartSkypeRuntime(HINSTANCE hInstance, const wchar_t *profileName, int &port extern "C" int __declspec(dllexport) Load(void) { + mir_getTMI(&tmi); + mir_getLP(&pluginInfo); + int port = 8963; VARST profilename( _T("%miranda_profilename%")); if ( !StartSkypeRuntime(g_hInstance, (TCHAR*)profilename, port)) { - ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR); + ::MessageBox(NULL, TranslateT("Proccess SkypeKit.exe did not start."), _T(MODULE), MB_OK | MB_ICONERROR); return 1; } char *keyPair = LoadKeyPair(g_hInstance); if ( !keyPair) { - ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR); + ::MessageBox(NULL, TranslateT("Initialization key corrupted or not valid."), _T(MODULE), MB_OK | MB_ICONERROR); return 1; } @@ -277,13 +280,13 @@ extern "C" int __declspec(dllexport) Load(void) TransportInterface::Status status = g_skype->init(keyPair, "127.0.0.1", port); if (status != TransportInterface::OK) { - ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR); + ::MessageBox(NULL, TranslateT("SkypeKit did not initialize."), _T(MODULE), MB_OK | MB_ICONERROR); return 1; } if ( !g_skype->start()) { - ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR); + ::MessageBox(NULL, TranslateT("SkypeKit did not start."), _T(MODULE), MB_OK | MB_ICONERROR); return 1; } @@ -291,9 +294,6 @@ extern "C" int __declspec(dllexport) Load(void) // --- - mir_getTMI(&tmi); - mir_getLP(&pluginInfo); - PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; pd.szName = "SKYPE"; pd.type = PROTOTYPE_PROTOCOL; -- cgit v1.2.3