Ignore:
Timestamp:
Aug 9, 2008, 1:32:26 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

Unicodeコンパイルで問題になる部分を修正

Location:
trunk/ab5.0/ablib/src/Classes/System
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/IO/BinaryWriter.ab

    r553 r581  
    165165        This.OutStream.Write( ToTCStr(value) As *Byte, 0, value.Length()*SizeOf(TCHAR))
    166166    End Sub
    167  
     167#ifndef UNICODE
    168168    /*
    169169        現在のストリームに2バイト符号なし整数を書き込み、ストリームの位置を 2バイトだけ進めます。
     
    172172        This.OutStream.Write( VarPtr(value) As *Byte, 0, SizeOf(Word))
    173173    End Sub
    174  
     174#endif
    175175    /*
    176176        現在のストリームに4バイト符号なし整数を書き込み、ストリームの位置を 4バイトだけ進めます。
  • trunk/ab5.0/ablib/src/Classes/System/Text/DecoderFallback.ab

    r497 r581  
    177177        End If
    178178        With replacement
    179             str = .StrPtr
    180             len = .Length
     179'           str = .StrPtr
     180'           len = .Length
    181181        End With
    182182    End Sub
  • trunk/ab5.0/ablib/src/Classes/System/Text/Encoding.ab

    r497 r581  
    151151    */
    152152    Function GetBytes(s As String, index As Long, count As Long, bytes As *Byte, byteCount As Long) As Long
    153         If chars = 0 Then
     153        If ActiveBasic.IsNothing(s) Then
    154154            Throw New ArgumentNullException("Encoding.GetBytes: An argument is null value.", "chars")
    155155        ElseIf bytes = 0 Then
  • trunk/ab5.0/ablib/src/Classes/System/Threading/WaitHandle.ab

    r494 r581  
    8787
    8888    Static Function SignalAndWait(toSignal As WaitHandle, toWaitOn As WaitHandle, millisecondsTimeout As Long, exitContext As Boolean) As Boolean
    89         Dim pSignalObjectAndWait = GetProcAddress(GetModuleHandle("Kernel32.dll"), "SignalObjectAndWait") As Detail.PFNSignalObjectAndWait
     89        Dim pSignalObjectAndWait = GetProcAddress(GetModuleHandle("Kernel32.dll"), ToMBStr("SignalObjectAndWait")) As Detail.PFNSignalObjectAndWait
    9090        If pSignalObjectAndWait = 0 Then
    9191            Throw New PlatformNotSupportedException("WaitHandle.SignalAndWait: This platform doesn't supoort this operation.")
Note: See TracChangeset for help on using the changeset viewer.