Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: virtual inheritance and polymorphism! Pin
Emilio Garavaglia2-Aug-11 20:30
Emilio Garavaglia2-Aug-11 20:30 
GeneralRe: virtual inheritance and polymorphism! Pin
Dean Seo3-Aug-11 16:24
Dean Seo3-Aug-11 16:24 
QuestionHow to disable a checkbox created using MFCRibbonCheckBox? Pin
MeghaJoshi1-Aug-11 18:22
MeghaJoshi1-Aug-11 18:22 
AnswerRe: How to disable a checkbox created using MFCRibbonCheckBox? Pin
Dr.Walt Fair, PE1-Aug-11 18:51
professionalDr.Walt Fair, PE1-Aug-11 18:51 
AnswerRe: How to disable a checkbox created using MFCRibbonCheckBox? Pin
Code-o-mat2-Aug-11 3:07
Code-o-mat2-Aug-11 3:07 
QuestionValue of an object in visual studio Pin
AndrewG12311-Aug-11 13:34
AndrewG12311-Aug-11 13:34 
AnswerRe: Value of an object in visual studio Pin
Richard Andrew x641-Aug-11 13:48
professionalRichard Andrew x641-Aug-11 13:48 
QuestionCreateNamedPipe() Pin
Member 38520241-Aug-11 12:36
Member 38520241-Aug-11 12:36 
Re-design of a process launched with re-directed STD streams.

Process A creates two named pipes. One to write to the input of launched process B and one to read from process B. Standard stuff.

Process B launches process C and D and E etc.. In that order and each one runs synchronously. So, only one sub-process is active at any one time.

Process' C,D,E in turn connect to process A through the CreateFile() function - again standard stuff.

Now, the first pass runs just fine - process C reads and writes records from/to A and then ends. Then process D starts - but there is nothing in the pipe. Process A puts stuff in the pipe - it is active all the time - (until process B terminates), then it deals with process E and so on ..

I know that this a bit vague interms of detial - but I have tried every combination of CreateNamedPipe/ConnectNamedPipe/DisconnectNamedPipe on the server side and PeekNamePipe/ReadFile etc on the server side - with pipe busy and pipe closed returncodes.

If anyone has an example or knows of where I can get some idea of how to design a server side mechanism that lets multiple synchronous clients connect in-turn then you would be my friend.

I guess that I am missing something very simple - I hope.
AnswerRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 12:45
professionalRichard Andrew x641-Aug-11 12:45 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 12:54
Member 38520241-Aug-11 12:54 
GeneralRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 12:59
professionalRichard Andrew x641-Aug-11 12:59 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 12:59
Member 38520241-Aug-11 12:59 
GeneralRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 13:05
professionalRichard Andrew x641-Aug-11 13:05 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 13:16
Member 38520241-Aug-11 13:16 
GeneralRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 13:23
professionalRichard Andrew x641-Aug-11 13:23 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 13:30
Member 38520241-Aug-11 13:30 
GeneralRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 13:32
professionalRichard Andrew x641-Aug-11 13:32 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 23:27
Member 38520241-Aug-11 23:27 
GeneralRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 13:34
professionalRichard Andrew x641-Aug-11 13:34 
GeneralRe: CreateNamedPipe() Pin
Member 38520242-Aug-11 3:16
Member 38520242-Aug-11 3:16 
AnswerRe: CreateNamedPipe() Pin
Richard Andrew x641-Aug-11 13:14
professionalRichard Andrew x641-Aug-11 13:14 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 13:17
Member 38520241-Aug-11 13:17 
GeneralRe: CreateNamedPipe() Pin
Member 38520241-Aug-11 23:03
Member 38520241-Aug-11 23:03 
AnswerRe: CreateNamedPipe() Pin
Chuck O'Toole2-Aug-11 15:38
Chuck O'Toole2-Aug-11 15:38 
GeneralRe: CreateNamedPipe() Pin
Member 38520242-Aug-11 22:52
Member 38520242-Aug-11 22:52 

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.