How can I empty COM's port instead of ReadFile()

Discussion in 'Programmer's Corner' started by anhnhamoi, May 3, 2012.

  1. anhnhamoi

    Thread Starter New Member

    Apr 24, 2012
    11
    0
    Hi,
    I am programming in com port, but there is a problem that I want to empty com port buffer I used ReadFile() of windows but it is not clear to me.Is there other way to do it?
     
    Last edited: May 3, 2012
  2. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
Loading...