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

C / C++ / MFC

 
GeneralRe: Socket Problem Pin
lucy11-Nov-05 10:44
lucy11-Nov-05 10:44 
GeneralRe: Socket Problem Pin
jonbondavis11-Nov-05 16:57
jonbondavis11-Nov-05 16:57 
GeneralRe: Socket Problem Pin
lucy12-Nov-05 17:00
lucy12-Nov-05 17:00 
QuestionHow to bring back ClassView Pin
shivditya10-Nov-05 17:36
shivditya10-Nov-05 17:36 
AnswerRe: How to bring back ClassView Pin
*Dreamz10-Nov-05 18:26
*Dreamz10-Nov-05 18:26 
QuestionRe: How to bring back ClassView Pin
shivditya10-Nov-05 18:40
shivditya10-Nov-05 18:40 
AnswerRe: How to bring back ClassView Pin
*Dreamz10-Nov-05 19:02
*Dreamz10-Nov-05 19:02 
GeneralRe: How to bring back ClassView Pin
shivditya10-Nov-05 21:05
shivditya10-Nov-05 21:05 
GeneralRe: How to bring back ClassView Pin
*Dreamz10-Nov-05 23:44
*Dreamz10-Nov-05 23:44 
QuestionAny VC++ certification exams??? Pin
mandanani10-Nov-05 17:19
mandanani10-Nov-05 17:19 
AnswerRe: Any VC++ certification exams??? Pin
ThatsAlok10-Nov-05 17:47
ThatsAlok10-Nov-05 17:47 
Questionneed code to select items in a tree with Ctrl and other keys Pin
narayanagvs10-Nov-05 16:43
narayanagvs10-Nov-05 16:43 
QuestionSocket Server Pin
NYTSX10-Nov-05 10:58
NYTSX10-Nov-05 10:58 
AnswerRe: Socket Server Pin
ThatsAlok10-Nov-05 19:33
ThatsAlok10-Nov-05 19:33 
GeneralRe: Socket Server Pin
NYTSX11-Nov-05 1:54
NYTSX11-Nov-05 1:54 
QuestionProgress bar being resized Pin
PrashantJ10-Nov-05 10:47
PrashantJ10-Nov-05 10:47 
AnswerRe: Progress bar being resized Pin
David Crow10-Nov-05 10:50
David Crow10-Nov-05 10:50 
GeneralRe: Progress bar being resized Pin
PrashantJ10-Nov-05 10:52
PrashantJ10-Nov-05 10:52 
GeneralRe: Progress bar being resized Pin
David Crow10-Nov-05 10:59
David Crow10-Nov-05 10:59 
AnswerRe: Progress bar being resized Pin
krmed10-Nov-05 17:00
krmed10-Nov-05 17:00 
GeneralRe: Progress bar being resized Pin
PrashantJ11-Nov-05 3:25
PrashantJ11-Nov-05 3:25 
QuestionIs there a deeper, hidden meaning behind this. Pin
WREY10-Nov-05 9:53
WREY10-Nov-05 9:53 
On the surface it doesn't make sense, but I recall 'PJ Arends' mentioned something about it in one of his articles, and now I see something similar to it in another article, which is causing me to try and remember the real reason behind its use.

Here's the code.
BOOL CALLBACK CMyApp::searcher(HWND hWnd, LPARAM lParam)
{
    DWORD result;
    LRESULT ok = ::SendMessageTimeout(hWnd,
                                      UWM_ARE_YOU_ME,
                                      0, 0, 
                                      SMTO_BLOCK |
                                      SMTO_ABORT_IF_HUNG,
                                      200,
                                      &result);
    if(ok == 0)
       return TRUE;          // ignore this and continue

    if(result == UWM_ARE_YOU_ME)
    {
        HWND* target = (HWND*)lParam;  // value assigned to ptr
        *target = hWnd;                // value assigned to ptr AGAIN!
        return FALSE;        // stop search
    }

    return TRUE;             // continue search
}

Is there a reason for the reassigning of a value to the same variable in this manner?

Unsure | :~

William

Fortes in fide et opere!
AnswerRe: Is there a deeper, hidden meaning behind this. Pin
David Crow10-Nov-05 10:52
David Crow10-Nov-05 10:52 
GeneralRe: Is there a deeper, hidden meaning behind this. Pin
WREY10-Nov-05 12:44
WREY10-Nov-05 12:44 
AnswerRe: Is there a deeper, hidden meaning behind this. Pin
John R. Shaw10-Nov-05 17:40
John R. Shaw10-Nov-05 17:40 

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.