Problem using CList ?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have created a structure as typedef struct __test{ char buf[10]; }TEST,*PTEST; then i created a CList object as CListmy_firststruct; then i am using to store linklist if( my_firststruct.IsEmpty()) my_firststruct.Addhead(pTest); else my_firststruct.AddTail(pTest); It is working fine. But problem start when i am using as typedef struct __Second{ char buf[10]; }SECOND,*PSECOND; typedef struct __test{ CListmy_secondstruct; char buf[10]; }TEST,*PTEST; if(pTest->my_secondstruct.IsEmpty()) when i am trying to call this is giving me error error code is C0000005: This error is with memory. So how i will resolve this error. Can any one help me on this...?