Solved

An Array of CStringList

Posted on 2004-08-12
4
376 Views
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?
0
Comment
Question by:SGyves
[X]
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
4 Comments
 
LVL 5

Accepted Solution

by:
millsoft earned 500 total points
ID: 11788732
class Foo
{
    vector< CStringList > m_stringListArray
};

or

class Foo
{
    CArray< CStringList > m_stringListArray;
};

0
 

Author Comment

by:SGyves
ID: 11788983
Actually....you cant do the second one...getting errors
0
 

Author Comment

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

Author Comment

by:SGyves
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!!
0

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 (https://www.adremsoft.com/). 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