Hi,

I need to create a list or array of CStrings within a function that will stay in memory next time I come into the function.

I tried:

Code:
CString groupFound = "tempGroup"

const CList <CString, CString> myGroups;

myGroups.Addtail ( groupFound );
I get the following error:

error C2663: 'AddTail' : 2 overloads have no legal conversion for 'this' pointer

Any ideas?

thanks