Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MainFrame variabel access in worker thread Pin
lucy2-Apr-02 6:40
lucy2-Apr-02 6:40 
GeneralRe: MainFrame variabel access in worker thread Pin
Alexandru Savescu2-Apr-02 20:38
Alexandru Savescu2-Apr-02 20:38 
GeneralMSFlexGrid causing a crash Pin
Chris Klecker2-Apr-02 2:39
Chris Klecker2-Apr-02 2:39 
QuestionHow to set an event multiple times in multithreading Pin
Bhikshapathi Gorantla2-Apr-02 2:36
Bhikshapathi Gorantla2-Apr-02 2:36 
AnswerRe: How to set an event multiple times in multithreading Pin
Joaquín M López Muñoz2-Apr-02 5:30
Joaquín M López Muñoz2-Apr-02 5:30 
GeneralRe: How to set an event multiple times in multithreading Pin
Bhikshapathi Gorantla2-Apr-02 19:30
Bhikshapathi Gorantla2-Apr-02 19:30 
GeneralRe: How to set an event multiple times in multithreading Pin
Neville Franks2-Apr-02 20:05
Neville Franks2-Apr-02 20:05 
GeneralRe: How to set an event multiple times in multithreading Pin
Joaquín M López Muñoz2-Apr-02 20:28
Joaquín M López Muñoz2-Apr-02 20:28 
I don't quite get what you're after, but maybe this approach is of some help: do it the other way around, omitting the "trigger" event and using just some cancelling event, like this:
// thread loop
switch(WaitForSingleObject(hCancelEvent,3000)){
  case WAIT_OBJECT_0: // cancel
    return 0; // exit
    break;
  case WAIT_TIMEOUT: // 3 seconds elapsed, do the query stuff
    // query stuff
    break;
  default: // unexpected, handle as appropriate
    ...
    break;
}
Is this closer to what you're looking for?

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
QuestionSTL::map, how to prevent use of temporary object? Pin
vmaltsev2-Apr-02 1:10
vmaltsev2-Apr-02 1:10 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Giles2-Apr-02 1:16
Giles2-Apr-02 1:16 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Joaquín M López Muñoz2-Apr-02 2:15
Joaquín M López Muñoz2-Apr-02 2:15 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Christian Graus2-Apr-02 9:35
protectorChristian Graus2-Apr-02 9:35 
GeneralRe: STL::map, how to prevent use of temporary object? Pin
vmaltsev2-Apr-02 23:03
vmaltsev2-Apr-02 23:03 
GeneralRe: STL::map, how to prevent use of temporary object? Pin
Joaquín M López Muñoz3-Apr-02 7:35
Joaquín M López Muñoz3-Apr-02 7:35 
GeneralConverts TCHAR to Managed String Pin
Ignacio Varas2-Apr-02 0:03
Ignacio Varas2-Apr-02 0:03 
GeneralRe: Converts TCHAR to Managed String Pin
2-Apr-02 2:31
suss2-Apr-02 2:31 
GeneralRe: Converts TCHAR to Managed String Pin
Le centriste2-Apr-02 6:44
Le centriste2-Apr-02 6:44 
GeneralRe: Converts TCHAR to Managed String Pin
Tim Smith2-Apr-02 7:28
Tim Smith2-Apr-02 7:28 
Questionhow to Maximize control ? Pin
2-Apr-02 0:01
suss2-Apr-02 0:01 
AnswerRe: how to Maximize control ? Pin
2-Apr-02 1:06
suss2-Apr-02 1:06 
QuestionHow can I retrieve the documents icon? Pin
AmarB2-Apr-02 0:02
AmarB2-Apr-02 0:02 
AnswerRe: How can I retrieve the documents icon? Pin
Mukkie2-Apr-02 5:25
Mukkie2-Apr-02 5:25 
GeneralToolbar in ActiveX control Pin
Tzoockee1-Apr-02 23:44
Tzoockee1-Apr-02 23:44 
GeneralRe: Toolbar in ActiveX control Pin
KaЯl2-Apr-02 4:44
KaЯl2-Apr-02 4:44 
GeneralMessage Removed Pin
1-Apr-02 22:42
suss1-Apr-02 22:42 

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.