Hi,
I am trying to write two different sets of characters to an external Microprocessor which supports RS232. I need to send commands such as "GO;" and "STOP;".
The external processor works fine with HyperTerminal. I thought I could use the MSComm active X control but it does not seem to work? Here is teh code im using
CString strOutput;
strOutput = ("GO;"
m_Serial.SetCommPort(1);
m_Serial.SetSettings("9600,n,8,1"
m_Serial.SetPortOpen(TRUE);
m_Serial.SetOutput(COleVariant(strOutput));
m_Serial.SetPortOpen(FALSE);
Any help would be very welcome
I am trying to write two different sets of characters to an external Microprocessor which supports RS232. I need to send commands such as "GO;" and "STOP;".
The external processor works fine with HyperTerminal. I thought I could use the MSComm active X control but it does not seem to work? Here is teh code im using
CString strOutput;
strOutput = ("GO;"
m_Serial.SetCommPort(1);
m_Serial.SetSettings("9600,n,8,1"
m_Serial.SetPortOpen(TRUE);
m_Serial.SetOutput(COleVariant(strOutput));
m_Serial.SetPortOpen(FALSE);
Any help would be very welcome