Ignore:
Timestamp:
Jul 26, 2007, 5:43:54 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

wtypes.abを追加

Location:
Include/Classes/System/IO
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/IO/DirectoryInfo.ab

    r271 r285  
    4545
    4646            ' 終端の '\' を除去
    47             If dirPath[dirPath.Length-1] = Asc("\\") Then
    48                 dirPath = dirPath.SubString(0, dirPath.Length-1)
     47            If dirPath[dirPath.Length-1] = Asc("\") Then
     48                dirPath = dirPath.Substring(0, dirPath.Length-1)
    4949            End If
    5050
     
    5555            op.hwnd = NULL
    5656            op.wFunc = FO_DELETE
    57             op.pFrom = dirPath.Chars
     57            op.pFrom = ToTCStr(dirPath)
    5858            op.pTo = NULL
    5959            op.fFlags = FOF_NOCONFIRMATION or FOF_NOERRORUI or FOF_SILENT
  • Include/Classes/System/IO/DriveInfo.ab

    r271 r285  
    4040    Function DriveFormat() As String
    4141        Dim systemName[15] As TCHAR
    42         If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, systemName, Len (systemName)) Then
     42        If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, systemName, Len (systemName)) Then
    4343            Return systemName
    4444        Else
     
    5252
    5353    Function IsReady() As Boolean
    54         If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, NULL, NULL) Then
     54        If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, NULL, 0) Then
    5555            Return True
    5656        Else
  • Include/Classes/System/IO/Path.ab

    r281 r285  
    7272
    7373        Dim tempFileName[ELM(MAX_PATH)] As TCHAR
    74         __GetTempFileName(tempPath, "ABT", 0, tempFileName)
    75         free(tempPath)
    76         Return tempFileName
     74        Dim len = __GetTempFileName(tempPath, "ABT", 0, tempFileName)
     75        _System_free(tempPath)
     76        Return New String(tempFileName, len As Long)
    7777    End Function
    7878
Note: See TracChangeset for help on using the changeset viewer.