Changeset 285 for Include/Classes/System/IO
- Timestamp:
- Jul 26, 2007, 5:43:54 PM (17 years ago)
- Location:
- Include/Classes/System/IO
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/IO/DirectoryInfo.ab
r271 r285 45 45 46 46 ' 終端の '\' を除去 47 If dirPath[dirPath.Length-1] = Asc("\ \") Then48 dirPath = dirPath.Sub String(0, dirPath.Length-1)47 If dirPath[dirPath.Length-1] = Asc("\") Then 48 dirPath = dirPath.Substring(0, dirPath.Length-1) 49 49 End If 50 50 … … 55 55 op.hwnd = NULL 56 56 op.wFunc = FO_DELETE 57 op.pFrom = dirPath.Chars57 op.pFrom = ToTCStr(dirPath) 58 58 op.pTo = NULL 59 59 op.fFlags = FOF_NOCONFIRMATION or FOF_NOERRORUI or FOF_SILENT -
Include/Classes/System/IO/DriveInfo.ab
r271 r285 40 40 Function DriveFormat() As String 41 41 Dim systemName[15] As TCHAR 42 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, systemName, Len (systemName)) Then42 If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, systemName, Len (systemName)) Then 43 43 Return systemName 44 44 Else … … 52 52 53 53 Function IsReady() As Boolean 54 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, NULL, NULL) Then54 If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, NULL, 0) Then 55 55 Return True 56 56 Else -
Include/Classes/System/IO/Path.ab
r281 r285 72 72 73 73 Dim tempFileName[ELM(MAX_PATH)] As TCHAR 74 __GetTempFileName(tempPath, "ABT", 0, tempFileName)75 free(tempPath)76 Return tempFileName74 Dim len = __GetTempFileName(tempPath, "ABT", 0, tempFileName) 75 _System_free(tempPath) 76 Return New String(tempFileName, len As Long) 77 77 End Function 78 78
Note:
See TracChangeset
for help on using the changeset viewer.