I am converting a project from Visual Studio 6 to Visual Studio 2010, and in VS 2010. The following line:
m_string.AddTail((CList *)&t.m_string);
gives the compile error:
error C2664: 'POSITION CList<type,arg_type>::AddTail(ARG_TYPE)' : cannot convert parameter 1 from '<clist><type,arg_type> *' to 'ATL::CStringT<BaseType,StringTraits> '
with
[
TYPE=CString,
ARG_TYPE=CString &
]
and
[
TYPE=CTickLabel::=::CString,
ARG_TYPE=CTickLabel::=::CString
]
and
[
BaseType=char,
StringTraits=StrTraitMFC<char>
]
Any help is greatly appreciated!!!!
Scott
///////////////////////UPDATE///////////////////////////////////
The definition of m_string is:
CList <cstring,> m_string;
't' is a parameter passed into the routine as: 'const CTickLabel& t'
with:
class CTickLabel : public CObject
{
DECLARE_SERIAL(CTickLabel)
public:
CList <cstring,> m_string;
int m_angle;
Please e-mail if any questions about the structure of the problem.
Thank you.
Scott