Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
You number variable is a non-static local one (in addition, it is not initialized), therefore its value will be lost after you exit the dialog procedure.

If you need it only within the function, declare it as static, and initialize:

BOOL CALLBACK dlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    static int number = 0;
    ...
}


If you need it outside, then move it on file level.
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 
GeneralRe: Adding static control to childvew [modified] Pin
rajeev829-Jun-06 3:55
rajeev829-Jun-06 3:55 
QuestionRe: Adding static control to childvew [modified] Pin
Viorel.9-Jun-06 4:05
Viorel.9-Jun-06 4:05 
GeneralRe: Adding static control to childvew [modified] Pin
Cedric Moonen9-Jun-06 4:06
Cedric Moonen9-Jun-06 4:06 
GeneralRe: Adding static control to childvew Pin
rajeev829-Jun-06 18:19
rajeev829-Jun-06 18:19 

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.