samyee
asked on
HELP!!!: Passing collection objects???
How to pass collection classes as argument for template & non-template type???
I've tried both but failed..... quite frustrating...
In my code,
CStringArray aString;
CArray <CString, LPCSTR> str;
CMyClass obj;
obj.method(aString, str);
=======
void CMyClass::
method(CStringArray aStr, CArray<CString, LPCSTR> str)
{
......
}
Then I got this error
C2664: cannot convert parameter 1 from 'class CStringArray' to 'class CStringArray'
======
Pls show me the right way.... Thanks......
I've tried both but failed..... quite frustrating...
In my code,
CStringArray aString;
CArray <CString, LPCSTR> str;
CMyClass obj;
obj.method(aString, str);
=======
void CMyClass::
method(CStringArray aStr, CArray<CString, LPCSTR> str)
{
......
}
Then I got this error
C2664: cannot convert parameter 1 from 'class CStringArray' to 'class CStringArray'
======
Pls show me the right way.... Thanks......
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER