Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat is wrong with my thread? help Pin
includeh1017-Sep-02 21:11
includeh1017-Sep-02 21:11 
AnswerRe: what is wrong with my thread? help Pin
valikac17-Sep-02 21:17
valikac17-Sep-02 21:17 
GeneralRe: what is wrong with my thread? help Pin
Steve S17-Sep-02 21:27
Steve S17-Sep-02 21:27 
GeneralRe: what is wrong with my thread? help Pin
includeh1017-Sep-02 21:27
includeh1017-Sep-02 21:27 
GeneralRe: what is wrong with my thread? help Pin
Steve S17-Sep-02 22:02
Steve S17-Sep-02 22:02 
GeneralRe: what is wrong with my thread? help Pin
includeh1017-Sep-02 21:44
includeh1017-Sep-02 21:44 
GeneralRe: what is wrong with my thread? help Pin
valikac18-Sep-02 4:35
valikac18-Sep-02 4:35 
AnswerRe: what is wrong with my thread? help Pin
Stephane Rodriguez.17-Sep-02 22:09
Stephane Rodriguez.17-Sep-02 22:09 
returning from your Proc_Thread procedure automatically destroys the thread, without needing to send it any other message. A normal Proc_Thread has an event/message loop of the form :
// Wait for the signal to create a component.
BOOL bContinue = TRUE;

while ( bContinue )
{
    switch( ::WaitForSingleObject( m_hComponentReadyEvent, m_WaitTime) )
    {
        // Update the surface becoz now it's ready
        case WAIT_OBJECT_0:
            if ( !m_bShouldStopNow )
            {
                //processPublishDirectory();
            }
            break ;
        // Process Windows messages.
        case (WAIT_OBJECT_0 + 1):
            MSG msg ;
            while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
            {
                if (msg.message == WM_QUIT)
                {
                    bContinue = FALSE ;
                    break ;
                }
                                    TranslateMessage(&msg);
                DispatchMessage(&msg) ;
            }
            break ;
        // Do background processing.
        case WAIT_TIMEOUT:
            if (m_bShouldStopNow)
                bContinue=FALSE;
            break ;

        default:
            break;
    }
}




MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site.
GeneralHelp: ClassWizard error! Pin
Daniel Strigl17-Sep-02 20:38
Daniel Strigl17-Sep-02 20:38 
GeneralRe: Help: ClassWizard error! Pin
Steve S17-Sep-02 21:18
Steve S17-Sep-02 21:18 
GeneralRe: Help: ClassWizard error! Pin
Daniel Strigl17-Sep-02 21:39
Daniel Strigl17-Sep-02 21:39 
GeneralChange the bitmap of a CommandBand button... Pin
Daniel Strigl17-Sep-02 20:00
Daniel Strigl17-Sep-02 20:00 
GeneralUsing ShellExecute to send email Pin
Abin17-Sep-02 18:02
Abin17-Sep-02 18:02 
GeneralRe: Using ShellExecute to send email Pin
Shog917-Sep-02 19:19
sitebuilderShog917-Sep-02 19:19 
GeneralRe: Using ShellExecute to send email Pin
Abin17-Sep-02 20:17
Abin17-Sep-02 20:17 
GeneralRe: Using ShellExecute to send email Pin
Jon Hulatt17-Sep-02 22:15
Jon Hulatt17-Sep-02 22:15 
GeneralRe: Using ShellExecute to send email Pin
Stephane Rodriguez.17-Sep-02 22:16
Stephane Rodriguez.17-Sep-02 22:16 
GeneralRe: Using ShellExecute to send email Pin
Abin17-Sep-02 22:38
Abin17-Sep-02 22:38 
GeneralRe: Using ShellExecute to send email Pin
adamUK17-Sep-02 22:15
adamUK17-Sep-02 22:15 
GeneralRe: Using ShellExecute to send email Pin
[James Pullicino]17-Sep-02 23:22
[James Pullicino]17-Sep-02 23:22 
QuestionWhere ANSI C Library Source Code can be downloaded? Pin
shi17-Sep-02 17:08
shi17-Sep-02 17:08 
AnswerRe: Where ANSI C Library Source Code can be downloaded? Pin
Chris Losinger17-Sep-02 18:18
professionalChris Losinger17-Sep-02 18:18 
Questionbool question? Pin
Rene De La Garza17-Sep-02 17:03
Rene De La Garza17-Sep-02 17:03 
AnswerRe: bool question? Pin
.dan.g.17-Sep-02 17:16
professional.dan.g.17-Sep-02 17:16 
GeneralRe: bool question? Pin
Rene De La Garza17-Sep-02 17:22
Rene De La Garza17-Sep-02 17:22 

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.