From 15dcbca30f52e8e4d7844f116d854ebdece90a46 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Mon, 12 Dec 2016 01:51:22 +0300 Subject: we should point user to our wiki instead opening a non-existent file --- plugins/Msg_Export/src/options.cpp | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) (limited to 'plugins/Msg_Export/src') diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp index 4c52cfb599..8c54402f3e 100755 --- a/plugins/Msg_Export/src/options.cpp +++ b/plugins/Msg_Export/src/options.cpp @@ -506,42 +506,6 @@ void AutoFindeFileNames(HWND hwndDlg) } } -///////////////////////////////////////////////////////////////////// -// Member Function : OpenHelp -// Type : Global -// Parameters : hwndDlg - handle to the parrent, ( Options Dlg ) -// Returns : void -// Description : -// -// References : - -// Remarks : - -// Created : 020427, 27 April 2002 -// Developer : KN -///////////////////////////////////////////////////////////////////// - -void OpenHelp(HWND hwndDlg) -{ - wchar_t szPath[MAX_PATH]; - if (GetModuleFileName(hInstance, szPath, _countof(szPath))) { - size_t nLen = mir_wstrlen(szPath); - if (nLen > 3) { - szPath[nLen - 1] = 't'; - szPath[nLen - 2] = 'x'; - szPath[nLen - 3] = 't'; - - SHELLEXECUTEINFO st = { 0 }; - st.cbSize = sizeof(st); - st.fMask = SEE_MASK_INVOKEIDLIST; - st.hwnd = NULL; - st.lpFile = szPath; - st.nShow = SW_SHOWDEFAULT; - ShellExecuteEx(&st); - } - } - - MessageBox(hwndDlg, TranslateT("Failed to get the path to Msg_Export.dll\nPlease locate Msg_Export.txt yourself"), MSG_BOX_TITEL, MB_OK); -} - ///////////////////////////////////////////////////////////////////// // Member Function : DlgProcMsgExportOpts // Type : Global @@ -781,7 +745,7 @@ static INT_PTR CALLBACK DlgProcMsgExportOpts(HWND hwndDlg, UINT msg, WPARAM wPar return TRUE; case IDC_OPEN_HELP: - OpenHelp(hwndDlg); + Utils_OpenUrl("http://wiki.miranda-ng.org/index.php?title=Plugin:Msg_Export"); return TRUE; case ID_SET_TO_DEFAULT: -- cgit v1.2.3