CList class object as return type
Posted on 2004-04-28
I need to have a CList object as return type. My code goes like this.
typedef CList<EERecordVector*,EERecordVector*> EERecordList;
suppose in a method like
EERecordList CTest :: testMethod( )
EERecordVector *RecordVector =new EERecordVector();
RecordVector->Action = 'a';
RecordVector->Record = "test record";
reclist.AddTail(RecordVector); //keep on adding values like this
return (reclist) //need to return the CList
I call the method as
EERecordList recs = test.testMethod();
this throws error.....
can anyone suggest.......