Click here to Skip to main content
15,918,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionruntime type casting Pin
wallbrick3-Jul-07 6:00
wallbrick3-Jul-07 6:00 
AnswerRe: runtime type casting Pin
Matthew Faithfull3-Jul-07 6:18
Matthew Faithfull3-Jul-07 6:18 
AnswerRe: runtime type casting Pin
led mike3-Jul-07 6:22
led mike3-Jul-07 6:22 
AnswerRe: runtime type casting Pin
Nuxser3-Jul-07 15:59
Nuxser3-Jul-07 15:59 
AnswerRe: runtime type casting Pin
Nuxser3-Jul-07 16:17
Nuxser3-Jul-07 16:17 
Questionget Distinguished Email id from GAL Pin
Ganesh_T3-Jul-07 5:47
Ganesh_T3-Jul-07 5:47 
QuestionThread syncronization Win32 Pin
Alex Cutovoi3-Jul-07 5:26
Alex Cutovoi3-Jul-07 5:26 
AnswerRe: Thread syncronization Win32 Pin
Matthew Faithfull3-Jul-07 6:08
Matthew Faithfull3-Jul-07 6:08 
If you want multiple threads to pass through a single function in predetermined order you're going to need a master thread to manage them and each one will have to wait to be signalled. I would add an Event to your one-per-thread structure, have each worker wait on its event and then have the main thread signal each event and wait for it to be reset by the signalled thread before singalling the next one. Have the worker reset its event after it has executed your controlled function. I can't see why you'd want to do this as it seems to negate any real benefit of threading but it's your project Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

AnswerRe: Thread syncronization Win32 Pin
led mike3-Jul-07 6:19
led mike3-Jul-07 6:19 
GeneralRe: Thread syncronization Win32 Pin
Alex Cutovoi3-Jul-07 6:46
Alex Cutovoi3-Jul-07 6:46 
GeneralRe: Thread syncronization Win32 Pin
led mike3-Jul-07 8:26
led mike3-Jul-07 8:26 
GeneralRe: Thread syncronization Win32 Pin
Alex Cutovoi5-Jul-07 6:53
Alex Cutovoi5-Jul-07 6:53 
GeneralRe: Thread syncronization Win32 Pin
led mike5-Jul-07 7:17
led mike5-Jul-07 7:17 
GeneralRe: Thread syncronization Win32 Pin
Alex Cutovoi5-Jul-07 11:29
Alex Cutovoi5-Jul-07 11:29 
QuestionGraphic control on CFormView Pin
kcselvaraj3-Jul-07 5:05
kcselvaraj3-Jul-07 5:05 
AnswerRe: Graphic control on CFormView Pin
Mark Salsbery3-Jul-07 8:10
Mark Salsbery3-Jul-07 8:10 
GeneralRe: Graphic control on CFormView [modified] Pin
kcselvaraj3-Jul-07 10:14
kcselvaraj3-Jul-07 10:14 
Questionerrors on linking for *.def file Options Pin
A7Zulu3-Jul-07 4:30
A7Zulu3-Jul-07 4:30 
AnswerRe: errors on linking for *.def file Options Pin
Iain Clarke, Warrior Programmer3-Jul-07 5:53
Iain Clarke, Warrior Programmer3-Jul-07 5:53 
QuestionGeneric USB access Pin
legit3-Jul-07 4:08
legit3-Jul-07 4:08 
AnswerRe: Generic USB access Pin
CPallini3-Jul-07 4:17
mveCPallini3-Jul-07 4:17 
QuestionNeed Links of Microsoft Windows NT architecture for reading Pin
Neeranjan3-Jul-07 4:01
Neeranjan3-Jul-07 4:01 
AnswerRe: Need Links of Microsoft Windows NT architecture for reading [modified] Pin
led mike3-Jul-07 4:56
led mike3-Jul-07 4:56 
AnswerHave you heard of Google? Pin
leckey3-Jul-07 7:59
leckey3-Jul-07 7:59 
GeneralRe: Have you heard of Google? Pin
Mark Salsbery3-Jul-07 8:12
Mark Salsbery3-Jul-07 8:12 

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.