Solved

An Array of CStringList

Posted on 2004-08-12
4
372 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 66
fizzArray  challenge 1 96
Unix Command -- Challenging  question 7 96
Is there a simple front-end menu system. 9 105
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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