Ignore:
Timestamp:
Jun 21, 2008, 3:59:30 PM (16 years ago)
Author:
OverTaker
Message:

Console.Writeを実装。TextWriter.Synchronizedは実装してません。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/basic/dos_console.sbp

    r497 r522  
    99Dim _System_hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE)
    1010Dim _System_hConsoleIn = GetStdHandle(STD_INPUT_HANDLE)
     11System.Console.SetOut(
     12     System.IO.TextWriter.Synchronized(New System.IO.StreamWriter(
     13        New System.IO.FileStream(_System_hConsoleOut, System.IO.FileAccess.Write, False))))
    1114System.Console.SetIn(
    1215    System.IO.TextReader.Synchronized(New System.IO.StreamReader(
     
    5760
    5861    Dim dwAccessBytes As DWord
    59     WriteConsole(_System_hConsoleOut, buf.StrPtr, buf.Length, dwAccessBytes, 0)
     62    System.Console.Write(buf)
     63'   WriteConsole(_System_hConsoleOut, buf.StrPtr, buf.Length, dwAccessBytes, 0)
    6064End Sub
    6165/* TODO: _System_GetUsingFormatを用意して実装する
Note: See TracChangeset for help on using the changeset viewer.