VC ++ MFC project

In VC ++ 6.0 mscomm control, please any body explain this function How it works, what it does

if (m_comm.GetCommEvent()==2 ) 
        {   
            VARIANT in_dat;
            in_dat = m_comm.GetInput();
            CString strInput(in_dat.bstrVal);
            m_input = m_input + strInput;
            UpdateData(FALSE);  
        }

      

0


source to share


2 answers


The code checks if the comm event has occurred. If so, then the input is received from the control and appended to m_input. After that, the data is updated.



The code doesn't provide deeper understanding.

+1


source


Just in case you don't know "data has been updated" in the HS "post", the dialog boxes are updated to display the new data



0


source







All Articles