An Array of CStringList

Posted on 2004-08-12
Last Modified: 2013-11-20
I am creating an object that needs a data member to hold an array of CStringList. How can I do this?
Question by:SGyves
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Accepted Solution

millsoft earned 500 total points
ID: 11788732
class Foo
    vector< CStringList > m_stringListArray


class Foo
    CArray< CStringList > m_stringListArray;


Author Comment

ID: 11788983 cant do the second one...getting errors

Author Comment

ID: 11789032
The second one cannot be done because there is no overloaded '=' operator for the CStringList

Author Comment

ID: 11789059
This would work though...(found through trial and error)

CTypedPtrList<CObList, CStringList*> m_strlistMyList

just have to dynamically allocate for each new stringlist...but it works!!

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question