GetOverlapedresult
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
i would like to know how to use this function i tried to do simultaniasly read/write from COM but it didnt work thanks.:confused:
You have to do the following steps: 1) CreateFile() with FILE_FLAG_OVERLAPPED 2) Create 2 Events by using CreateEvent() 3) Create 2 OVERLAPPED STRUCT and put events (2) in here 4) now use WaitCommEvent(), ReadFile(), WriteFile() with STRUCTS (3) as calling-parameters That`s it ... So far ... RockNix/// ------------------------------------ www.klangwerker.de Need some articles about Threading, Subclassing, Double Buffering ? Go for it ... Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder Visit us on www.klangwerker.de ------------------------------------