Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Static CLass('s) Pin
ForNow5-Jan-08 20:00
ForNow5-Jan-08 20:00 
GeneralRe: Static CLass('s) Pin
Maxwell Chen5-Jan-08 19:08
Maxwell Chen5-Jan-08 19:08 
GeneralRe: Static CLass('s) Pin
Eytukan5-Jan-08 19:37
Eytukan5-Jan-08 19:37 
GeneralRe: Static CLass('s) Pin
Eytukan5-Jan-08 18:28
Eytukan5-Jan-08 18:28 
GeneralArrays Pin
babamara5-Jan-08 12:13
babamara5-Jan-08 12:13 
GeneralRe: Arrays Pin
CPallini5-Jan-08 12:27
mveCPallini5-Jan-08 12:27 
GeneralRe: Arrays Pin
Eytukan5-Jan-08 17:49
Eytukan5-Jan-08 17:49 
GeneralRe: Arrays Pin
Maxwell Chen5-Jan-08 17:56
Maxwell Chen5-Jan-08 17:56 
Because the info you provided is not enough, I can not be sure that you are doing correctly. Here is the check list for you.

1) One must add data elements into an array container, then he can enumerate the elements in the container. Getting elements from an empty container would result in access violation.

2) Before invoking CDialog::Create, the pointer of type CDialog* needs to be new -ed.

3) The for loop shall check the actual size of the array by calling CArray::GetCount. That is,
for(int nCount=0; nCount < dlgArray.GetCount(); nCount++)



Maxwell Chen

GeneralRe: Arrays [modified] Pin
babamara5-Jan-08 20:56
babamara5-Jan-08 20:56 
GeneralRe: Arrays Pin
Maxwell Chen5-Jan-08 21:57
Maxwell Chen5-Jan-08 21:57 
GeneralRe: Arrays Pin
babamara5-Jan-08 22:21
babamara5-Jan-08 22:21 
GeneralRe: Arrays Pin
Maxwell Chen5-Jan-08 22:47
Maxwell Chen5-Jan-08 22:47 
GeneralRe: Arrays Pin
babamara5-Jan-08 23:32
babamara5-Jan-08 23:32 
GeneralRe: Arrays Pin
Maxwell Chen6-Jan-08 0:10
Maxwell Chen6-Jan-08 0:10 
QuestionRe: Arrays Pin
CPallini6-Jan-08 3:06
mveCPallini6-Jan-08 3:06 
Generalstatic pointer Pin
jupiter10005-Jan-08 11:59
jupiter10005-Jan-08 11:59 
GeneralRe: static pointer Pin
CPallini5-Jan-08 12:22
mveCPallini5-Jan-08 12:22 
GeneralRe: static pointer Pin
jupiter10005-Jan-08 12:46
jupiter10005-Jan-08 12:46 
GeneralRe: static pointer Pin
CPallini5-Jan-08 13:10
mveCPallini5-Jan-08 13:10 
GeneralProblem with mirrored bitmap Pin
AnTri5-Jan-08 9:04
AnTri5-Jan-08 9:04 
GeneralRe: Problem with mirrored bitmap Pin
Mark Salsbery5-Jan-08 9:50
Mark Salsbery5-Jan-08 9:50 
GeneralRe: Problem with mirrored bitmap Pin
AnTri5-Jan-08 10:24
AnTri5-Jan-08 10:24 
GeneralRe: Problem with mirrored bitmap Pin
Mark Salsbery5-Jan-08 10:30
Mark Salsbery5-Jan-08 10:30 
Questionmemory leak in the code? Pin
George_George5-Jan-08 4:02
George_George5-Jan-08 4:02 
AnswerRe: memory leak in the code? Pin
CPallini5-Jan-08 4:09
mveCPallini5-Jan-08 4:09 

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.