Command Prefix in C#
Posted: Tue Jan 20, 2004 5:29 pm
How do I send a command prefix (and other control chars) in C#? (using the ancient MSCOMM control)
In VB 6.0, this works -
I don't quite understand the theory behind what is being sent.
The MSCOMM control accepts a text string in C#. Not sure what it was in VB. Perhaps the encoding is incorrect... Is it an array? Is it a bit?
I'm so lost it's not even funny.
Please Help!
In VB 6.0, this works -
Code: Select all
CP = Chr$(&HFE)
MSComm.Output = CP & "X"
The MSCOMM control accepts a text string in C#. Not sure what it was in VB. Perhaps the encoding is incorrect... Is it an array? Is it a bit?
I'm so lost it's not even funny.
Please Help!