Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/articles/mfc-tutorials/)
-   -   Interprocess communication through Named pipes (http://www.go4expert.com/articles/interprocess-communication-named-pipes-t864/)

shabbir 30Mar2007 17:51

Re: Interprocess communication through Named pipes
 
Quote:

Originally Posted by lplover2k
oh ok...so it's that complicated?.. :(

Offtopic comment:
You can always assume that

lplover2k 30Mar2007 18:40

Re: Interprocess communication through Named pipes
 
i think i going to read each pixel of the jpg image and send them in series in a string and i reassemble them at destination...

shabbir 30Mar2007 19:22

Re: Interprocess communication through Named pipes
 
Quote:

Originally Posted by lplover2k
i think i going to read each pixel of the jpg image and send them in series in a string and i reassemble them at destination...

That will corrupt the final output file and send them as bytes.

parvez.yu 6Mar2008 14:54

Re: Interprocess communication through Named pipes
 
ipc is quite complicated ,can you give me some link from where i can gain some knowledge

jithoos 22May2008 11:19

Re: Interprocess communication through Named pipes
 
I have a console exe, which simple does like this.

_tprintf(_T("Hello..."));
Sleep(2000);
_tprintf(_T("Good Morning.."));
Sleep(3000);
_tprintf(_T("How r u??"));

I want invoke this exe from my Dialog appication, and display these outputs in a ListBox. I did it using CreatePipe(), CreateProcess() and ReadFile() functions. But the problem now is when execution reaches the ReadFile() function, it stucks for some time(upto the completion of child process) . And instead of getting "Hello", RedFile() reads entire output texts ("Hello.. GoodMorning..How r u??") as a whole. But what i want is to instantly read the output of child exe whenver it prints a new text.. Wht to do??


All times are GMT +5.5. The time now is 14:28.