Click here to Skip to main content
15,910,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: unknown letters printing Pin
David Crow4-May-10 18:09
David Crow4-May-10 18:09 
QuestionBoost Filesystem copy_file() Pin
RobNO4-May-10 17:50
professionalRobNO4-May-10 17:50 
AnswerRe: Boost Filesystem copy_file() Pin
RobNO4-May-10 18:32
professionalRobNO4-May-10 18:32 
GeneralRe: Boost Filesystem copy_file() Pin
RobNO4-May-10 18:34
professionalRobNO4-May-10 18:34 
GeneralRe: Boost Filesystem copy_file() Pin
Richard MacCutchan4-May-10 21:32
mveRichard MacCutchan4-May-10 21:32 
QuestionFull text search using Patricia tree with meta-data on a song database Pin
C++AsASecondLanguage4-May-10 12:06
C++AsASecondLanguage4-May-10 12:06 
QuestionTwo way communication between parent and child processes... Pin
DamienCurr4-May-10 9:10
DamienCurr4-May-10 9:10 
AnswerRe: Two way communication between parent and child processes... Pin
«_Superman_»4-May-10 10:41
professional«_Superman_»4-May-10 10:41 
As it is in the code, the return address of fork is checked to determine if the control is in the child or parent process.
So if the return value is 0, it means it is the child process and so code for the child is written in case 0: and code for the parent is written in default:

Also, why do you need to create two pipes.
The pipe call returns a double ended pipe which can be used for 2 way communication.
«_Superman
I love work. It gives me something to do between weekends.

Microsoft MVP (Visual C++)

GeneralRe: Two way communication between parent and child processes... Pin
DamienCurr4-May-10 11:12
DamienCurr4-May-10 11:12 
Generalcode in C .... Pin
slamdunk12345674-May-10 8:57
slamdunk12345674-May-10 8:57 
GeneralRe: code in C .... Pin
Chris Losinger4-May-10 9:08
professionalChris Losinger4-May-10 9:08 
GeneralRe: code in C .... PinPopular
CPallini4-May-10 9:09
mveCPallini4-May-10 9:09 
GeneralRe: code in C .... Pin
Rajesh R Subramanian4-May-10 9:37
professionalRajesh R Subramanian4-May-10 9:37 
GeneralRe: code in C .... Pin
CPallini4-May-10 11:56
mveCPallini4-May-10 11:56 
GeneralRe: code in C .... Pin
Maximilien4-May-10 9:41
Maximilien4-May-10 9:41 
JokeRe: code in C .... PinPopular
Richard MacCutchan4-May-10 10:33
mveRichard MacCutchan4-May-10 10:33 
JokeRe: code in C .... Pin
«_Superman_»4-May-10 10:43
professional«_Superman_»4-May-10 10:43 
GeneralRe: code in C .... Pin
LittleYellowBird4-May-10 22:25
LittleYellowBird4-May-10 22:25 
GeneralRe: code in C .... Pin
Michael Schubert5-May-10 1:21
Michael Schubert5-May-10 1:21 
QuestionDebugging Program Hangs Pin
softwaremonkey4-May-10 7:42
softwaremonkey4-May-10 7:42 
AnswerRe: Debugging Program Hangs Pin
David Crow4-May-10 8:28
David Crow4-May-10 8:28 
GeneralRe: Debugging Program Hangs Pin
softwaremonkey5-May-10 20:09
softwaremonkey5-May-10 20:09 
AnswerRe: Debugging Program Hangs Pin
«_Superman_»4-May-10 8:38
professional«_Superman_»4-May-10 8:38 
GeneralRe: Debugging Program Hangs Pin
softwaremonkey5-May-10 20:06
softwaremonkey5-May-10 20:06 
GeneralRe: Debugging Program Hangs Pin
«_Superman_»5-May-10 20:14
professional«_Superman_»5-May-10 20:14 

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.