fork download
  1. Imports System
  2. Declare Function GetStdHandle Lib "kernel32" (ByVal _
  3. nStdHandle As Long) As Long
  4. Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" _
  5. (ByVal hConsoleOutput As Long, lpBuffer As Any, ByVal _
  6. nNumberOfCharsToWrite As Long, lpNumberOfCharsWritten As Long, _
  7. lpReserved As Any) As Long
  8. Public Class Test
  9. Public Shared Sub Main()
  10. Dim hConsole As Long
  11. hConsole = GetStdHandle(STD_OUTPUT_HANDLE)
  12. If hConsole = 0 Then Console.WriteLine("0")
  13. End Sub
  14. End Class
Compilation error #stdin compilation error #stdout 0.07s 13352KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/Zjfo4h/prog.vb (2,8) : Error VBNC30203: Not valid as identifier.
/home/Zjfo4h/prog.vb (4,8) : Error VBNC30203: Not valid as identifier.
There were 2 errors and 0 warnings.
Compilation took 00:00:00.6484950
stdout
Standard output is empty