Solved

An Array of CStringList

Posted on 2004-08-12
4
363 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
Comment Utility
class Foo
{
    vector< CStringList > m_stringListArray
};

or

class Foo
{
    CArray< CStringList > m_stringListArray;
};

0
 

Author Comment

by:SGyves
Comment Utility
Actually....you cant do the second one...getting errors
0
 

Author Comment

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

Author Comment

by:SGyves
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now