serial port c++ builder
Check that code, I'm using this in BCB 4.0 You'll understand the code.If you can't, send me PM.
int dwError,fSuccess;
HANDLE hCom;
unsigned long dwSize;
void asdasdasdasdas
{
_DCB dcb;
OVERLAPPED o;
hCom = CreateFile("COM3", GENERIC_READ | GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
dcb.BaudRate = 38400;dcb.ByteSize = 8;dcb.Parity = NOPARITY;dcb.StopBits = ONESTOPBIT;
o.hEvent = CreateEvent(NULL,FALSE,FALSE,NULL);
assert(o.hEvent);
FlushFileBuffers(hCom);
fSuccess = WriteFile(hCom, "ABCDE", 5, &dwSize, NULL);
}