Click here to Skip to main content
16,011,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hello about hooking this weird function any info is welcome Pin
nah133725-Nov-08 21:55
nah133725-Nov-08 21:55 
QuestionRe: Hello about hooking this weird function any info is welcome Pin
CPallini25-Nov-08 22:25
mveCPallini25-Nov-08 22:25 
AnswerRe: Hello about hooking this weird function any info is welcome Pin
nah133725-Nov-08 23:04
nah133725-Nov-08 23:04 
QuestionBigger OLE property pages Pin
garyflet25-Nov-08 7:39
garyflet25-Nov-08 7:39 
QuestionAVI capFileSaveDIB saving bitmap directly to memory?? Pin
Vaclav_25-Nov-08 7:03
Vaclav_25-Nov-08 7:03 
AnswerRe: AVI capFileSaveDIB saving bitmap directly to memory?? Pin
Mark Salsbery25-Nov-08 8:12
Mark Salsbery25-Nov-08 8:12 
GeneralRe: AVI capFileSaveDIB saving bitmap directly to memory?? Pin
led mike25-Nov-08 11:49
led mike25-Nov-08 11:49 
QuestionInterprocess Communication using Named Pipes Async (OverLapped) I/O Pin
ForNow25-Nov-08 6:47
ForNow25-Nov-08 6:47 
Hi,

I was wondering if any of the experts could tell me If my usage of Named Pipes For Interprocess communication Async. is correct

First Server code

CreateNamedPipe ... using FILE_FLAG_OVERLAPPED

Overlappeda.hEvent = CreateEvent(&sa,FALSE,FALSE,TEXT("EVENTA"));

OverLappedb.hEvent = CreateEvent(&sa,FALSE,FALSE,TEXT("EVENTB"));

// Wait For Cleint to Connect

ConnectNamedPipe....


Now Client Code


filehandle = CreateFile

Get PID of Parent

PHANDLE = OpenProcess

myeventa = OpenEvent("EVENTA");

myeventb = OpenEvent("EVENTB");

// Duplicate hEvent of Overlaped.hEvent Created By Server

DuplicateHande(...myevanta... (Target Handle) myoverlappeda.hEventa


CreateThread.... to wait for I/O from Server



Mythread code

// wait For I/O from Server

for (;;)
{
WaitForSingleObject(myoverlappeda.hEvent...

// Read I/O
ReadFile(filehandle





go to proper function in Client
}




One the things I am not sure of is the WaitForSingleObject before The ReadFile

or After

The Way i have it Coded now if The event in the WaitForSingleObject gets signaled

will it Readfile go into a Wait Again ????? or since the WaitForSingleObject

Says there is data everyting will work ???


Thankx
AnswerRe: Interprocess Communication using Named Pipes Async (OverLapped) I/O Pin
led mike25-Nov-08 11:48
led mike25-Nov-08 11:48 
GeneralRe: Interprocess Communication using Named Pipes Async (OverLapped) I/O Pin
ForNow25-Nov-08 13:34
ForNow25-Nov-08 13:34 
GeneralRe: Interprocess Communication using Named Pipes Async (OverLapped) I/O Pin
Iain Clarke, Warrior Programmer26-Nov-08 0:45
Iain Clarke, Warrior Programmer26-Nov-08 0:45 
GeneralRe: Interprocess Communication using Named Pipes Async (OverLapped) I/O Pin
ForNow26-Nov-08 13:44
ForNow26-Nov-08 13:44 
QuestionCVSListBox message map issue - OnItemChanged Pin
digitalwater25-Nov-08 4:30
digitalwater25-Nov-08 4:30 
AnswerRe: CVSListBox message map issue - OnItemChanged Pin
Code-o-mat25-Nov-08 5:23
Code-o-mat25-Nov-08 5:23 
GeneralRe: CVSListBox message map issue - OnItemChanged Pin
digitalwater25-Nov-08 12:56
digitalwater25-Nov-08 12:56 
GeneralRe: CVSListBox message map issue - OnItemChanged Pin
digitalwater25-Nov-08 18:59
digitalwater25-Nov-08 18:59 
Questionwin32 app Pin
nuttynibbles25-Nov-08 3:42
nuttynibbles25-Nov-08 3:42 
AnswerRe: win32 app Pin
Hamid_RT25-Nov-08 4:03
Hamid_RT25-Nov-08 4:03 
GeneralRe: win32 app Pin
nuttynibbles25-Nov-08 4:48
nuttynibbles25-Nov-08 4:48 
GeneralRe: win32 app Pin
Hamid_RT25-Nov-08 19:14
Hamid_RT25-Nov-08 19:14 
QuestionRe: win32 app Pin
CPallini25-Nov-08 21:31
mveCPallini25-Nov-08 21:31 
Questionwysiwyg HTML editor Pin
William Engberts25-Nov-08 2:31
William Engberts25-Nov-08 2:31 
AnswerRe: wysiwyg HTML editor Pin
Stephen Hewitt25-Nov-08 2:40
Stephen Hewitt25-Nov-08 2:40 
AnswerRe: wysiwyg HTML editor Pin
Ahmed Charfeddine25-Nov-08 2:40
Ahmed Charfeddine25-Nov-08 2:40 
QuestionHow to make the cursor move to end of a multiline edit box ? Pin
kapardhi25-Nov-08 2:29
kapardhi25-Nov-08 2:29 

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.