Hi!
I'm receiving data from COM1 port char by char and i would like to capture this data from other port(COM3).
LONG CMainFrame::OnCommunication(WPARAM ch, LPARAM port)
{
WriteDataEx(m_strCapturePath,l_file, (char*)l_com_buffer,1024, FALSE);
}
WriteDataEx(const CString& f_strFilepath, CFile& f_file, char* cInput, const int f_size, BOOL bConfig)
{
f_file.Write(cInput, f_size);
}
So how to form each chars as chunk and send to writedataex function ?