Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

An Array of CStringList

Posted on 2004-08-12
4
Medium Priority
?
380 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
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
millsoft earned 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

824 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