Problem in using CList
-
Hi All, I was trying to explore the working of double Linklist in MFC using CList. I have created a struct such as struct XXXX{ char buff[10]; char buff1[10]; }YYY; then CList my_list; my_list.AddHead(); This is working fine . But my problem is when i want do ... struct zzzz{ char buff[10]; char buff1[10]; }PPP; struct XXXX{ CListmy_second_Struct; char buff[10]; char buff1[10]; }YYY; Is it help me to achive my goal. If Not please help me Regards &Thanks Neeraj Kumar Jha
-
Hi All, I was trying to explore the working of double Linklist in MFC using CList. I have created a struct such as struct XXXX{ char buff[10]; char buff1[10]; }YYY; then CList my_list; my_list.AddHead(); This is working fine . But my problem is when i want do ... struct zzzz{ char buff[10]; char buff1[10]; }PPP; struct XXXX{ CListmy_second_Struct; char buff[10]; char buff1[10]; }YYY; Is it help me to achive my goal. If Not please help me Regards &Thanks Neeraj Kumar Jha
My overall advice is that you'd do better to learn to use the stl::list instead of the MFC one. Either way, which ever you use, it's not a managed C++ construct, so you're in the wrong forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog