Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs there a map ActiveX? Pin
Peter Molnar20-Feb-03 20:23
Peter Molnar20-Feb-03 20:23 
Questionwhere can I download Win2000 DDK free? Pin
white jungle20-Feb-03 17:41
white jungle20-Feb-03 17:41 
GeneralCVS and VS.NET Pin
Nick Blumhardt20-Feb-03 17:36
Nick Blumhardt20-Feb-03 17:36 
GeneralGDI & Windowing System Pin
vikramlinux20-Feb-03 17:25
vikramlinux20-Feb-03 17:25 
GeneralSTL list use of own class Pin
kiken20-Feb-03 16:32
kiken20-Feb-03 16:32 
GeneralRe: STL list use of own class Pin
Paul M Watt20-Feb-03 16:44
mentorPaul M Watt20-Feb-03 16:44 
GeneralRe: STL list use of own class Pin
kiken20-Feb-03 17:11
kiken20-Feb-03 17:11 
GeneralThread Control and WaitCommEvent() Pin
lead2gold20-Feb-03 16:31
lead2gold20-Feb-03 16:31 
I'm currently working on a project for college where we (our project group) attach a unit we built to the serial port and interact with it using software.

Everything works great... to a point...

We call WaitCommEvent() which sets our thread (we created) in a block state and when a character is sent (from our hardware unit through the serial port), the software processes it properly... HOWEVER.... my problem is that...

The ONLY thing that breaks the WaitCommEvent() is hardware interaction....
The main program (that spawns the thread running the WaitCommEvent) cannot kill the thread or somehow interrupt the wait event.

I'm only an amateur at this, and have gotten this far by getting lost in the MSDN libraries... but I'm stumped on this one...

Does anyone know any little tricks I can do or any way I can modify my code so I can lift the WaitCommEvent() suspend state using software interaction. Then allowing me to terminate the thread?

Confused | :confused:



lead2gold
GeneralRe: Thread Control and WaitCommEvent() Pin
Roger Allen21-Feb-03 1:58
Roger Allen21-Feb-03 1:58 
GeneralRe: Thread Control and WaitCommEvent() Pin
lead2gold21-Feb-03 16:26
lead2gold21-Feb-03 16:26 
GeneralRe: Thread Control and WaitCommEvent() Pin
Daniel Lohmann22-Feb-03 0:22
Daniel Lohmann22-Feb-03 0:22 
GeneralRe: Thread Control and WaitCommEvent() Pin
lead2gold23-Feb-03 6:07
lead2gold23-Feb-03 6:07 
GeneralRe: Thread Control and WaitCommEvent() Pin
Daniel Lohmann23-Feb-03 7:46
Daniel Lohmann23-Feb-03 7:46 
GeneralRe: Thread Control and WaitCommEvent() Pin
lead2gold24-Feb-03 18:28
lead2gold24-Feb-03 18:28 
Generalgraphics.h Pin
InternetMill20-Feb-03 16:25
InternetMill20-Feb-03 16:25 
GeneralRe: graphics.h Pin
Paul M Watt20-Feb-03 16:46
mentorPaul M Watt20-Feb-03 16:46 
GeneralRe: graphics.h Pin
InternetMill21-Feb-03 10:08
InternetMill21-Feb-03 10:08 
GeneralGDI Pin
jeva20-Feb-03 16:01
jeva20-Feb-03 16:01 
GeneralRe: GDI Pin
Christian Graus20-Feb-03 16:07
protectorChristian Graus20-Feb-03 16:07 
QuestionChange the background colour of CCombobox? Pin
Zenith7420-Feb-03 14:23
Zenith7420-Feb-03 14:23 
AnswerRe: Change the background colour of CCombobox? Pin
vikramlinux20-Feb-03 23:18
vikramlinux20-Feb-03 23:18 
GeneralInterfaces to other applications Pin
User 988520-Feb-03 12:57
User 988520-Feb-03 12:57 
GeneralRe: Interfaces to other applications Pin
Brian Olej20-Feb-03 13:52
Brian Olej20-Feb-03 13:52 
GeneralRe: Interfaces to other applications Pin
User 988520-Feb-03 13:59
User 988520-Feb-03 13:59 
GeneralRe: Interfaces to other applications Pin
Brian Olej20-Feb-03 14:26
Brian Olej20-Feb-03 14:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.