Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Microsoft auto-generated comments Pin
alex.barylski28-Aug-02 17:24
alex.barylski28-Aug-02 17:24 
GeneralRe: Microsoft auto-generated comments Pin
Michael P Butler28-Aug-02 22:04
Michael P Butler28-Aug-02 22:04 
GeneralRe: Microsoft auto-generated comments Pin
Chris Losinger28-Aug-02 17:41
professionalChris Losinger28-Aug-02 17:41 
QuestionHow to create an edit box in code Pin
~~~~s28-Aug-02 15:33
suss~~~~s28-Aug-02 15:33 
AnswerHow to create an edit box in code Pin
~~~~s28-Aug-02 15:36
suss~~~~s28-Aug-02 15:36 
AnswerRe: How to create an edit box in code Pin
Christian Graus28-Aug-02 16:38
protectorChristian Graus28-Aug-02 16:38 
Generalpipe communication Pin
includeh1028-Aug-02 13:05
includeh1028-Aug-02 13:05 
GeneralRe: pipe communication Pin
Roger Stewart28-Aug-02 17:39
professionalRoger Stewart28-Aug-02 17:39 
Are you calling CloseHandle on the pipe handles when you are done with them? This should signal to either the Write or the Read side that the pipe has been closed/broken and you can cleanup/exit.
i.e.:
DWORD dwBytesToRead = 0;
<P></P>
BOOL bStatus = ReadFile( m_hReadPipe, &SomeData, dwBytesToRead, &dwBytesRead, NULL );
<P></P>
if( bStatus && (dwBytesRead > 0) )
{
    //... Do something with the data ...
<P></P>
    // Ok, I'm done with the Pipe
    CloseHandle(m_hReadPipe);
    m_hReadPipe = INVALID_HANDLE_VALUE;
}
else
{
    // The pipe has been broken or closed by the other side.
    // Cleanup if necessary.
    if( m_hReadPipe != INVALID_HANDLE_VALUE)
    {
       CloseHandle(m_hReadPipe);
       m_hReadPipe = INVALID_HANDLE_VALUE;
    }
}


Roger Stewart
"I Owe, I Owe, it's off to work I go..."

GeneralRe: pipe communication Pin
Alois Kraus28-Aug-02 21:04
Alois Kraus28-Aug-02 21:04 
GeneralAdd/Remove of the function is impossible, because the parent class code is read only Pin
adamUK28-Aug-02 12:48
adamUK28-Aug-02 12:48 
GeneralProperty Sheet and CFormView Pin
Kash28-Aug-02 12:47
Kash28-Aug-02 12:47 
GeneralRe: Property Sheet and CFormView Pin
Chris Losinger28-Aug-02 12:52
professionalChris Losinger28-Aug-02 12:52 
GeneralPulling data from Document to Dialog Pin
RalfPeter28-Aug-02 11:35
RalfPeter28-Aug-02 11:35 
GeneralRe: Pulling data from Document to Dialog Pin
Joaquín M López Muñoz28-Aug-02 11:47
Joaquín M López Muñoz28-Aug-02 11:47 
GeneralRe: Pulling data from Document to Dialog Pin
Anonymous29-Aug-02 4:32
Anonymous29-Aug-02 4:32 
GeneralRe: Pulling data from Document to Dialog Pin
Joaquín M López Muñoz29-Aug-02 4:58
Joaquín M López Muñoz29-Aug-02 4:58 
GeneralRe: Pulling data from Document to Dialog Pin
Rohit  Sinha28-Aug-02 11:48
Rohit  Sinha28-Aug-02 11:48 
GeneralRe: Pulling data from Document to Dialog Pin
Chris Losinger28-Aug-02 11:48
professionalChris Losinger28-Aug-02 11:48 
Generalwho to use it Pin
imran_rafique28-Aug-02 11:28
imran_rafique28-Aug-02 11:28 
GeneralMaximizing window after application start Pin
Mariusz Popiolek28-Aug-02 10:54
sussMariusz Popiolek28-Aug-02 10:54 
GeneralRe: Maximizing window after application start Pin
Joaquín M López Muñoz28-Aug-02 11:05
Joaquín M López Muñoz28-Aug-02 11:05 
GeneralRe: Maximizing window after application start Pin
Rohit  Sinha28-Aug-02 12:00
Rohit  Sinha28-Aug-02 12:00 
Generalwinsock for desktop to pocketPC connectivity Pin
Anonymous28-Aug-02 10:54
Anonymous28-Aug-02 10:54 
GeneralRe: winsock for desktop to pocketPC connectivity Pin
anju29-Aug-02 0:21
anju29-Aug-02 0:21 
GeneralSSPI Libraries Pin
djrisc28-Aug-02 10:53
djrisc28-Aug-02 10:53 

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.