Changeset 473 for trunk/Include/basic/dos_console.sbp
- Timestamp:
- Mar 12, 2008, 9:54:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/basic/dos_console.sbp
r432 r473 10 10 Dim _System_hConsoleIn = GetStdHandle(STD_INPUT_HANDLE) 11 11 System.Console.SetIn( 12 New System.IO.StreamReader(13 New System.IO.FileStream(_System_hConsoleIn, System.IO.FileAccess.Read, False))) 12 System.IO.TextReader.Synchronized(New System.IO.StreamReader( 13 New System.IO.FileStream(_System_hConsoleIn, System.IO.FileAccess.Read, False)))) 14 14 15 15 '---------- command.sbp内で定義済み ---------- … … 57 57 58 58 Dim dwAccessBytes As DWord 59 #ifdef __STRING_UNICODE_WINDOWS_ANSI60 ' Debug61 Dim oldAlloc = _System_AllocForConvertedString62 _System_AllocForConvertedString = AddressOf (_System_malloc)63 Dim pszOut As PCSTR64 Dim len = GetStr(buf, pszOut)65 _System_AllocForConvertedString = oldAlloc66 WriteConsole(_System_hConsoleOut, pszOut, len, dwAccessBytes, 0)67 _System_free(pszOut)68 #else69 59 WriteConsole(_System_hConsoleOut, buf.StrPtr, buf.Length, dwAccessBytes, 0) 70 #endif71 60 End Sub 72 61 /* TODO: _System_GetUsingFormatを用意して実装する
Note:
See TracChangeset
for help on using the changeset viewer.