Changeset 261
- Timestamp:
- Jan 27, 2014, 6:59:30 AM (10 years ago)
- Location:
- trunk/DirectShowSpy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DirectShowSpy/DirectShowSpy.rc
r258 r261 59 59 60 60 VS_VERSION_INFO VERSIONINFO 61 FILEVERSION 1, 0, 0, 13 0161 FILEVERSION 1, 0, 0, 1319 62 62 PRODUCTVERSION 1,0,0,1 63 63 FILEFLAGSMASK 0x3fL … … 78 78 VALUE "CompanyName", "Roman Ryltsov" 79 79 VALUE "FileDescription", "Alax.Info DirectShow Spy Module" 80 VALUE "FileVersion", "1, 0, 0, 13 01\0"80 VALUE "FileVersion", "1, 0, 0, 1319\0" 81 81 VALUE "InternalName", "DirectShowSpy.dll" 82 82 VALUE "LegalCopyright", "Copyright © Alax.Info, Roman Ryltsov, 2008-2014" -
trunk/DirectShowSpy/FilterGraphHelper.h
r258 r261 1038 1038 __C(pMessage->put_Subject(CComBSTR(sSubject))); 1039 1039 #pragma region Attachment 1040 CRoArrayT<CPath> DeleteArray; 1040 CRoArrayT<CPath> DeletePathArray; 1041 CRoArrayT<CString> FailurePathArray; 1041 1042 { 1042 1043 CEmailLogDialog& EmailLogDialog = m_pOwner->m_EmailLogDialog; … … 1047 1048 const BOOL bDelete = EmailLogDialog.GetDelete(); 1048 1049 for(SIZE_T nIndex = 0; nIndex < Array.GetCount(); nIndex++) 1050 { 1051 CEmailLogDialog::CSelectedFileData& FileData = Array[nIndex]; 1049 1052 _ATLTRY 1050 1053 { 1051 CEmailLogDialog::CSelectedFileData& FileData = Array[nIndex];1052 1054 CLocalObjectPtr<CBzip2Item> pItem; 1053 1055 pItem->LoadFromFile(FileData.m_sPath, nTruncateSize); … … 1074 1076 } 1075 1077 if(bDelete) 1076 Delete Array.Add(FileData.m_sPath);1078 DeletePathArray.Add(FileData.m_sPath); 1077 1079 } 1078 1080 _ATLCATCHALL() 1079 1081 { 1080 _Z_EXCEPTION() 1082 _Z_EXCEPTION(); 1083 FailurePathArray.Add((LPCTSTR) FileData.m_sPath); 1081 1084 } 1085 } 1082 1086 } 1083 1087 } 1084 1088 #pragma endregion 1085 1089 __C(pMessage->Send()); 1086 for(SIZE_T nIndex = 0; nIndex < Delete Array.GetCount(); nIndex++)1087 DeleteFile(Delete Array[nIndex]);1090 for(SIZE_T nIndex = 0; nIndex < DeletePathArray.GetCount(); nIndex++) 1091 DeleteFile(DeletePathArray[nIndex]); 1088 1092 _RegKeyHelper::SetStringValue(HKEY_CURRENT_USER, REGISTRY_ROOT, _T("Email Message Template"), CString(sMessageString)); 1093 if(!FailurePathArray.IsEmpty()) 1094 { 1095 const CString sMessage = AtlFormatString(_T("It was unable to attach the following files:") _T("\r\n\r\n") _T("%s"), _StringHelper::Join(FailurePathArray, _T("\r\n"))); 1096 AtlMessageBoxEx(m_hWnd, (LPCTSTR) sMessage, IDS_WARNING, MB_ICONWARNING | MB_OK); 1097 } 1089 1098 AtlOptionalMessageBoxEx(m_hWnd, _T("CFilterGraphHelper::CPropertyFrameDialog::CEmailDialog::CredentialsSaved"), _T("The email was sent.") _T("\r\n\r\n") _T("The credentials were written into registry for further reuse. Use Erase Cached Credentials link to delete them from registry."), IDS_INFORMATION, MB_ICONINFORMATION | MB_OK); 1090 1099 MessageBeep(MB_OK);
Note: See TracChangeset
for help on using the changeset viewer.