CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    1

    CList in a CList



    Hi there,

    I'm using VC6.0++ and would like to implement a 2 dimensional CList


    Is there anyway to implement this, and how do I do it?


    Thanks a million

  2. #2
    Join Date
    Apr 1999
    Posts
    191

    Yes



    Yes, you can do this. Do it just like you might expect:

    class CMyClass

    {

    CList<CAnotherClass,CAnotherClass &>m_mainList;

    };


    class CAnotherClass

    {

    CList<CPrimitiveObject,CPrimitiveObject &> m_secondaryList;

    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured