Click here to Skip to main content
15,913,090 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Defining my own escape sequences? Pin
David Crow12-Jun-06 2:32
David Crow12-Jun-06 2:32 
AnswerRe: Defining my own escape sequences? Pin
Zac Howland9-Jun-06 8:03
Zac Howland9-Jun-06 8:03 
QuestionRefresh/update Dialogs in TabCtrl ??? Pin
embeddedDude9-Jun-06 5:59
embeddedDude9-Jun-06 5:59 
QuestionNT Services with ADO Pin
almc9-Jun-06 5:22
almc9-Jun-06 5:22 
QuestionLinker Error 2001, yet again Pin
Fariborz_579-Jun-06 5:13
Fariborz_579-Jun-06 5:13 
AnswerRe: Linker Error 2001, yet again Pin
Zac Howland9-Jun-06 5:44
Zac Howland9-Jun-06 5:44 
Question_Iterator_base sometimes struct, sometimes class Pin
Federico Milano9-Jun-06 4:51
Federico Milano9-Jun-06 4:51 
Questionproblem with dialog procedure Pin
fury 849-Jun-06 4:47
fury 849-Jun-06 4:47 
Rose | [Rose] I have a dialog box that I would like to increse a variable everytime a button is pushed, but instead once the button is pushed the variable is set to 2376868 everytime. Using message boxes to debug a little I determined that the variable seems to randomly increse in the WM_COMMAND part of my message loop. My dialog procedure looks something like:
BOOL CALLBACK dlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
     int number;
     switch (msg)
     {
            case WM_INITDIALOG:
            /* some stuff to set value of number*/
            case WM_COMMAND:
                 switch (LOWORD(wParam))
                 {
                        case ID_REGISTER:
                             number += 1;
                             EndDialog(hwnd, 0);
                        break;
                 }
            break;
            case WM_CLOSE:
                 EndDialog(hwnd, 0);
            break;
            default: 
                  return FALSE;
     }
     return TRUE;
}

Any thoughts on how to fix this? Thanks

-Matt
AnswerRe: problem with dialog procedure Pin
David Crow9-Jun-06 5:28
David Crow9-Jun-06 5:28 
GeneralRe: problem with dialog procedure Pin
fury 849-Jun-06 10:41
fury 849-Jun-06 10:41 
GeneralRe: problem with dialog procedure Pin
David Crow9-Jun-06 10:46
David Crow9-Jun-06 10:46 
AnswerRe: problem with dialog procedure Pin
Viorel.9-Jun-06 5:38
Viorel.9-Jun-06 5:38 
GeneralRe: problem with dialog procedure Pin
fury 849-Jun-06 10:48
fury 849-Jun-06 10:48 
Questioncontrol Pin
yogendra kaushik9-Jun-06 4:22
yogendra kaushik9-Jun-06 4:22 
AnswerRe: control Pin
David Crow9-Jun-06 4:31
David Crow9-Jun-06 4:31 
Questionproblem in inserting image into the database Pin
maharaja pandian9-Jun-06 4:14
maharaja pandian9-Jun-06 4:14 
AnswerRe: problem in inserting image into the database Pin
David Crow9-Jun-06 4:36
David Crow9-Jun-06 4:36 
GeneralRe: problem in inserting image into the database Pin
maharaja pandian9-Jun-06 20:26
maharaja pandian9-Jun-06 20:26 
AnswerRe: problem in inserting image into the database Pin
Viorel.9-Jun-06 4:40
Viorel.9-Jun-06 4:40 
GeneralRe: problem in inserting image into the database Pin
maharaja pandian9-Jun-06 20:25
maharaja pandian9-Jun-06 20:25 
QuestionProblem Writing bitmap info File Pin
Reji_Kumar9-Jun-06 4:08
Reji_Kumar9-Jun-06 4:08 
AnswerRe: Problem Writing bitmap info File Pin
Viorel.9-Jun-06 4:31
Viorel.9-Jun-06 4:31 
AnswerRe: Problem Writing bitmap info File Pin
Chris Losinger9-Jun-06 5:27
professionalChris Losinger9-Jun-06 5:27 
QuestionAdding static control to childvew Pin
rajeev829-Jun-06 3:35
rajeev829-Jun-06 3:35 
AnswerRe: Adding static control to childvew Pin
Viorel.9-Jun-06 3:53
Viorel.9-Jun-06 3: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.