(1) Init an event by using CreateEvent() (2) Add in OVERLAPPED struct to your code (3) Insert the event (1) into (2) (4) CreateFile() with FILE_FLAG_OVERLAPPED Now call WaitCommEvent() with LPOVERLAPPED = (2) whereever you want. Wenn the specified com-event occurs the event (1) will be set to signaled state. You should wait for it with WaitForSingleObject() in a seperate thread. Stay heavy ... RockNix/// ------------------------------- Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder on http://www.klangwerker.de -------------------------------
RockNix 0
Posts
-
an event from comm-port -
loading bitmapsit seems you have setup a console-app project instead of a win32-app project Stay heavy ... RockNix/// ------------------------------- Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder on http://www.klangwerker.de -------------------------------
-
IE Settingsmaybe you will find the reg-entries here but beware of different locations at othe ie-versions HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\... the win32 API provides a lot of functions to access reg-entries like RegOpenKey(), RegCloseKey() and so on ... see MSDN for more Stay heavy ... RockNix/// --------------------------------- Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder on http://www.klangwerker.de -------------------------------