Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 16:59
ginjikun15-Nov-07 16:59 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn15-Nov-07 17:17
sitebuilderLuc Pattyn15-Nov-07 17:17 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 17:56
ginjikun15-Nov-07 17:56 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn15-Nov-07 18:07
sitebuilderLuc Pattyn15-Nov-07 18:07 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:18
ginjikun15-Nov-07 18:18 
GeneralRe: NamedPipe Error in CreateFile Pin
Luc Pattyn16-Nov-07 2:55
sitebuilderLuc Pattyn16-Nov-07 2:55 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 18:13
Llasus15-Nov-07 18:13 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:26
ginjikun15-Nov-07 18:26 
Hi Llasus!

the "function1 exit" was printed after it encountered the error "The system cannot find the file specified.".

function1 called is just like as i have posted it less the checking and the other function calls like PeekNamedPipe to avoid cluter. it just calls CreateFile if successful then calls WriteFile and then calls ReadFile then CloseHandle. but in CreateFile it already fails

function1(pipename, data)
{
if(CreateFile(pipename...))
{
WriteFile(data...);
ReadFile(reply...);
Closehandle(...);
}
else
{
Log(GetLastError());
}
}


thanks again!


old
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 17:42
Llasus15-Nov-07 17:42 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:01
ginjikun15-Nov-07 18:01 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 18:25
Llasus15-Nov-07 18:25 
GeneralRe: NamedPipe Error in CreateFile Pin
ginjikun15-Nov-07 18:31
ginjikun15-Nov-07 18:31 
GeneralRe: NamedPipe Error in CreateFile Pin
Llasus15-Nov-07 18:38
Llasus15-Nov-07 18:38 
QuestionCapture TEXT in screen Pin
chiwaki15-Nov-07 13:22
chiwaki15-Nov-07 13:22 
AnswerRe: Capture TEXT in screen Pin
chiwaki15-Nov-07 15:37
chiwaki15-Nov-07 15:37 
QuestionHelp Pin
dellthinker15-Nov-07 13:10
dellthinker15-Nov-07 13:10 
QuestionHow to process and update GUI Pin
nrbracke15-Nov-07 11:32
nrbracke15-Nov-07 11:32 
AnswerRe: How to process and update GUI Pin
Mark Salsbery15-Nov-07 11:38
Mark Salsbery15-Nov-07 11:38 
GeneralRe: How to process and update GUI Pin
nrbracke17-Nov-07 12:44
nrbracke17-Nov-07 12:44 
GeneralRe: How to process and update GUI Pin
Mark Salsbery17-Nov-07 13:03
Mark Salsbery17-Nov-07 13:03 
QuestionHow to add menu to CListbox? Pin
Gofur Halmurat15-Nov-07 9:46
Gofur Halmurat15-Nov-07 9:46 
AnswerRe: How to add menu to CListbox? Pin
Mark Salsbery15-Nov-07 10:37
Mark Salsbery15-Nov-07 10:37 
GeneralRe: How to add menu to CListbox? Pin
Gofur Halmurat15-Nov-07 10:59
Gofur Halmurat15-Nov-07 10:59 
GeneralRe: How to add menu to CListbox? Pin
Mark Salsbery15-Nov-07 11:28
Mark Salsbery15-Nov-07 11:28 
GeneralRe: How to add menu to CListbox? Pin
Gofur Halmurat16-Nov-07 6:18
Gofur Halmurat16-Nov-07 6:18 

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.