Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan any one slove this problem ............ Pin
srikanthyenuganti8-Jul-08 1:03
srikanthyenuganti8-Jul-08 1:03 
AnswerRe: can any one slove this problem ............ Pin
Yajnesh Narayan Behera8-Jul-08 3:18
Yajnesh Narayan Behera8-Jul-08 3:18 
GeneralRe: can any one slove this problem ............ Pin
srikanthyenuganti10-Jul-08 1:59
srikanthyenuganti10-Jul-08 1:59 
QuestionInter-Thread Communication Pin
Daniel Kanev7-Jul-08 23:58
Daniel Kanev7-Jul-08 23:58 
AnswerRe: Inter-Thread Communication Pin
CPallini8-Jul-08 0:11
mveCPallini8-Jul-08 0:11 
AnswerRe: Inter-Thread Communication Pin
killabyte8-Jul-08 0:14
killabyte8-Jul-08 0:14 
QuestionRe: Inter-Thread Communication Pin
killabyte8-Jul-08 13:16
killabyte8-Jul-08 13:16 
AnswerRe: Inter-Thread Communication Pin
Iain Clarke, Warrior Programmer9-Jul-08 0:09
Iain Clarke, Warrior Programmer9-Jul-08 0:09 
I've only just seen your post, so I'm not one of the 2 1's, but pipes are a heavy duty solution that's too cumbersome most of the time.

I've used them myself between processes - the idea was that one of my processes might not even be on the same PC, so they give good flexibility.

But between two threads in the same the same process, I think they're over the top. Especially for worker->ui thread communications. PostMessage works a treat, and fits nicely into the MFC message loop handling. For pipes, you'd need to alter the message pump to wait for events (you have overlapped I/O I hope!) and messages.

For ui->worker thread communications, pipes are more appropriate - especially if it's opened in message mode.

Iain.

Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

GeneralRe: Inter-Thread Communication Pin
killabyte9-Jul-08 2:45
killabyte9-Jul-08 2:45 
AnswerRe: Inter-Thread Communication Pin
Cedric Moonen8-Jul-08 0:40
Cedric Moonen8-Jul-08 0:40 
Questiondisplay source code while debugging Pin
George_George7-Jul-08 23:56
George_George7-Jul-08 23:56 
AnswerRe: display source code while debugging Pin
Stephen Hewitt8-Jul-08 15:01
Stephen Hewitt8-Jul-08 15:01 
GeneralRe: display source code while debugging Pin
George_George8-Jul-08 15:44
George_George8-Jul-08 15:44 
QuestionWriting to Registry Pin
V K 27-Jul-08 23:01
V K 27-Jul-08 23:01 
AnswerRe: Writing to Registry Pin
Rajesh R Subramanian7-Jul-08 23:03
professionalRajesh R Subramanian7-Jul-08 23:03 
GeneralRe: Writing to Registry Pin
V K 27-Jul-08 23:25
V K 27-Jul-08 23:25 
QuestionRe: Writing to Registry Pin
Rajesh R Subramanian7-Jul-08 23:35
professionalRajesh R Subramanian7-Jul-08 23:35 
AnswerRe: Writing to Registry Pin
V K 27-Jul-08 23:37
V K 27-Jul-08 23:37 
GeneralRe: Writing to Registry Pin
Rajesh R Subramanian7-Jul-08 23:46
professionalRajesh R Subramanian7-Jul-08 23:46 
GeneralRe: Writing to Registry Pin
V K 28-Jul-08 0:28
V K 28-Jul-08 0:28 
QuestionRe: Writing to Registry Pin
David Crow8-Jul-08 2:55
David Crow8-Jul-08 2:55 
JokeNope. Pin
CPallini7-Jul-08 23:40
mveCPallini7-Jul-08 23:40 
GeneralRe: Nope. Pin
Rajesh R Subramanian7-Jul-08 23:48
professionalRajesh R Subramanian7-Jul-08 23:48 
JokeRe: Nope. Pin
CPallini7-Jul-08 23:56
mveCPallini7-Jul-08 23:56 
JokeI'm thinking of authoring a book. I was just wondering if you'd join me Pin
Rajesh R Subramanian8-Jul-08 0:01
professionalRajesh R Subramanian8-Jul-08 0:01 

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.