S
Siegfried Heintze
Consider this program:
Module Hello
Declare Function _getch Lib "msvcrt.dll" () As Integer
Dim out As System.IO.TextWriter = System.Console.Out
Sub Main(args() as String)
out.WriteLine("Hello World!")
out.Write("Press any key to continue: ")
_getch()
End Sub
End Module
(1) Can this be done without a PInvoke to make it portable?
(2) How can I make the single character read timeout after a minute?
Thanks
Siegfried
Module Hello
Declare Function _getch Lib "msvcrt.dll" () As Integer
Dim out As System.IO.TextWriter = System.Console.Out
Sub Main(args() as String)
out.WriteLine("Hello World!")
out.Write("Press any key to continue: ")
_getch()
End Sub
End Module
(1) Can this be done without a PInvoke to make it portable?
(2) How can I make the single character read timeout after a minute?
Thanks
Siegfried