i want to receive the data use the recordset
exec like "select * from student where ages=23"
where i can put the m_nParam,m_strFilter,the Rfx(..) and so so,
the best is sample,
...全文
4997打赏收藏
CRecordSet
i want to receive the data use the recordset exec like "select * from student where ages=23" where i can put the m_nParam,m_strFilter,the Rfx(..) and so so, the best is sample,
thanks a lot,
the realy problem is
i derieved a class like CStudent from CRecordset use the class wizard.
i want to exec the sql like "select * from the student where ages = certenage",i want to throh modify the member verible or member function of CStudent ,how and where can i do this .not in the program.
m_strQuery.Format("select * from [%s]","student" ); //select * from student where ages=23
m_pRecordset = new CDaoRecordset(&m_database);
m_pRecordset->Open(dbOpenDynaset, m_strQuery, dbReadOnly);