F
Fir5tSight
Hi All,
I have a simple VB code:
Sub OutputLine(ByRef Level As String, ByRef InfoString As String)
Const gSTDOUT As Integer = -11
Dim hStdOut, BytesWritten As Integer
Dim s As String
s = Level & " " & InfoString
Console.WriteLine(s)
End Sub
This should write string s to a standard output with a line return each
time. However, I have two issues here:
1) Level is missing from the output - It only contains InfoString. For
instance: When Level = "INFO", and InforString = "Process started", The
output is "Process started" only;
2) No newline character at the end.
Any advice on what it going on and how to get this resolved? Thanks!
-Emily
I have a simple VB code:
Sub OutputLine(ByRef Level As String, ByRef InfoString As String)
Const gSTDOUT As Integer = -11
Dim hStdOut, BytesWritten As Integer
Dim s As String
s = Level & " " & InfoString
Console.WriteLine(s)
End Sub
This should write string s to a standard output with a line return each
time. However, I have two issues here:
1) Level is missing from the output - It only contains InfoString. For
instance: When Level = "INFO", and InforString = "Process started", The
output is "Process started" only;
2) No newline character at the end.
Any advice on what it going on and how to get this resolved? Thanks!
-Emily