Click here to Skip to main content
15,896,606 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Discussions/General Programming/COM Pin
Gary R. Wheeler6-Oct-16 13:21
Gary R. Wheeler6-Oct-16 13:21 
GeneralRe: Discussions/General Programming/COM Pin
Roger Wright6-Oct-16 13:52
professionalRoger Wright6-Oct-16 13:52 
GeneralRe: Discussions/General Programming/COM Pin
Gary R. Wheeler7-Oct-16 0:11
Gary R. Wheeler7-Oct-16 0:11 
GeneralRe: Discussions/General Programming/COM Pin
Rob Grainger7-Oct-16 1:08
Rob Grainger7-Oct-16 1:08 
GeneralRe: Discussions/General Programming/COM Pin
Nish Nishant7-Oct-16 4:15
sitebuilderNish Nishant7-Oct-16 4:15 
GeneralRe: Discussions/General Programming/COM Pin
Rob Grainger7-Oct-16 6:54
Rob Grainger7-Oct-16 6:54 
GeneralRe: Discussions/General Programming/COM Pin
Nish Nishant7-Oct-16 7:15
sitebuilderNish Nishant7-Oct-16 7:15 
JokeRe: Discussions/General Programming/COM Pin
raddevus6-Oct-16 8:14
mvaraddevus6-Oct-16 8:14 
I'm doing modern windows development too. Just started with...

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
    MSG msg;
    BOOL bRet;

    for(; ; )
    {
        bRet = GetMessage(&msg, NULL, 0, 0);

        if (bRet > 0)  // (bRet > 0 indicates a message that must be processed.)
        {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
        else if (bRet < 0)  // (bRet == -1 indicates an error.)
        {
            // Handle or log the error; possibly exit.
            // ...
        }
        else  // (bRet == 0 indicates "exit program".)
        {
            break;
        }
    }
    return msg.wParam;
}


It's a joke, people. A joke. Laugh | :laugh: But, also, that code still works.
My book, Launch Your Android App, is available at Amazon.com.

GeneralRe: Discussions/General Programming/COM Pin
Rob Philpott6-Oct-16 8:55
Rob Philpott6-Oct-16 8:55 
JokeLatest victims of out-sourcing - receptionists! Pin
Nish Nishant6-Oct-16 5:09
sitebuilderNish Nishant6-Oct-16 5:09 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
dandy726-Oct-16 5:27
dandy726-Oct-16 5:27 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Nish Nishant6-Oct-16 7:28
sitebuilderNish Nishant6-Oct-16 7:28 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Mark_Wallace6-Oct-16 10:05
Mark_Wallace6-Oct-16 10:05 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Nish Nishant6-Oct-16 11:28
sitebuilderNish Nishant6-Oct-16 11:28 
JokeRe: Latest victims of out-sourcing - receptionists! Pin
dandy727-Oct-16 4:59
dandy727-Oct-16 4:59 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Nish Nishant7-Oct-16 5:02
sitebuilderNish Nishant7-Oct-16 5:02 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
dandy727-Oct-16 5:07
dandy727-Oct-16 5:07 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Nish Nishant7-Oct-16 5:09
sitebuilderNish Nishant7-Oct-16 5:09 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
raddevus6-Oct-16 5:31
mvaraddevus6-Oct-16 5:31 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Gary R. Wheeler6-Oct-16 13:22
Gary R. Wheeler6-Oct-16 13:22 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
charlieg8-Oct-16 19:11
charlieg8-Oct-16 19:11 
GeneralRe: Latest victims of out-sourcing - receptionists! Pin
Peter Rob!nson9-Oct-16 19:41
Peter Rob!nson9-Oct-16 19:41 
GeneralAPOD Pin
R. Giskard Reventlov6-Oct-16 4:51
R. Giskard Reventlov6-Oct-16 4:51 
GeneralRe: APOD Pin
Munchies_Matt6-Oct-16 5:05
Munchies_Matt6-Oct-16 5:05 
GeneralRe: APOD Pin
Richard Deeming6-Oct-16 7:03
mveRichard Deeming6-Oct-16 7:03 

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.