Fr0zenBrain
March 7th, 2003, 02:08 AM
This piece of code used to compile without any errors or warnings in vc6. NOw it is giving errors.
vector < CAdapt< CComPtr<IMyField> > >::iterator theIterator;
for ( theIterator = m_coll.begin(); theIterator != m_coll.end(); theIterator++ )
{
CComPtr<IMyField> Fld;
Fld = *theIterator
Error :
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'ATL::CAdapt<<T>T>' (or there is no acceptable conversion)
with
[
T=ATL::CComPtr <<IMyField>IMyField>
]
vector < CAdapt< CComPtr<IMyField> > >::iterator theIterator;
for ( theIterator = m_coll.begin(); theIterator != m_coll.end(); theIterator++ )
{
CComPtr<IMyField> Fld;
Fld = *theIterator
Error :
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'ATL::CAdapt<<T>T>' (or there is no acceptable conversion)
with
[
T=ATL::CComPtr <<IMyField>IMyField>
]