Changeset 20
- Timestamp:
- 10/9/2007 11:58:46 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
EraserDll/Eraser.cpp (modified) (1 diff)
-
EraserDll/SecurityManager.cpp (modified) (2 diffs)
-
EraserDoc.cpp (modified) (2 diffs)
-
EraserDoc.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EraserDll/Eraser.cpp
r4 r20 722 722 // drive must be given as "X:\\" 723 723 724 if (!isalpha(szItem[0]) || szItem[1] != ':' || szItem[2] != '\\') { 725 return ERASER_ERROR_PARAM2; 726 } 724 // In thi needed for UNC files? 725 //if (!isalpha(szItem[0]) || szItem[1] != ':' || szItem[2] != '\\') { 726 // return ERASER_ERROR_PARAM2; 727 //} 727 728 728 729 eraserContextAccess(context); -
trunk/EraserDll/SecurityManager.cpp
r4 r20 82 82 83 83 if (ERROR_SUCCESS != protect.Create(HKEY_LOCAL_MACHINE, REG_PRODUCT_KEY )) 84 throw std::runtime_error("Unable create key");84 throw std::runtime_error("Unable to create key"); 85 85 86 86 … … 100 100 if (ERROR_ACCESS_DENIED == dwErrorCode) 101 101 throw std::runtime_error("Access denied"); 102 throw std::runtime_error("Unable create key");102 throw std::runtime_error("Unable to create key"); 103 103 } 104 104 -
trunk/EraserDoc.cpp
r3 r20 147 147 HRESULT hr = ::SHGetFolderPath(NULL,CSIDL_COMMON_DOCUMENTS | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, p); 148 148 m_strExePath.ReleaseBuffer(); 149 m_strExePath = m_strExePath.Left(m_strExePath.ReverseFind('\\') + 1) +szDefaultDir;149 m_strExePath = m_strExePath.Left(m_strExePath.ReverseFind('\\') + 1); 150 150 151 151 // read preferences … … 162 162 AfxGetApp()->LoadIcon(IDI_ICON_TRAY), 163 163 IDR_MENU_TRAY, !m_bNoTrayIcon); 164 164 /* 165 m_stIcon.Create(NULL, // Let icon deal with its own messages 166 WM_ICON_NOTIFY, // Icon notify message to use 167 _T("Starting..."), // tooltip 168 AfxGetApp()->LoadIcon(IDI_ICON_TRAY), 169 IDR_MENU_TRAY, // ID of tray icon 170 FALSE, 171 _T("Eraser Starting!"), // balloon tip 172 _T("Eraser"), // balloon title 173 NIIF_WARNING, // balloon icon 174 20 ); // balloon timeout 175 */ 165 176 // create timers 166 177 CalcNextAssignment(); -
trunk/EraserDoc.h
r3 r20 67 67 const LPCTSTR szImportTitle = "Select Import File"; 68 68 69 const LPCTSTR szDefaultDir = "\\Documents\\";70 69 const LPCTSTR szDefaultFile = "default.ers"; 71 70
Note: See TracChangeset
for help on using the changeset viewer.
