_RecordsetPtr m_pRecordset1;
IDispatch* pRS;
*pRS = (IDispatch *)m_pRecordset1.Detach();编译的时候说:
D:\yanabc\Iyanabc.cpp(66) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'struct IDispatch *' (or there is no acceptable conversion)其中的:*pRS = (IDispatch *)m_pRecordset1.Detach();不对,为什么,怎么写才能对啊,请指教,非常感谢!