steps for com port connection

hi
a)what steps my program for com port communications must include ?
1. CreateFile()
2. GetCommState(), init DCB structure, SetCommState()
3. WaitCommEvent() or ?
4. ReadFile/WriteFile

b)how right used WaitCommEvent and overlapped structure ?

thanks


Comments

  • : hi
    : a)what steps my program for com port communications must include ?
    : 1. CreateFile()
    : 2. GetCommState(), init DCB structure, SetCommState()
    : 3. WaitCommEvent() or ?
    : 4. ReadFile/WriteFile
    :
    : b)how right used WaitCommEvent and overlapped structure ?
    :
    : thanks
    :
    :

    [blue]did you read and understand the examples in MSDN? This is all explained in the description for CreateFile.[/blue]
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion