How to access records from ODBC in VC++(MFC)???
Posted on 2002-05-15
I am building a instant messenger in VC++
My problem is that i can access the records from the database using CRecordSet as shown:::
rs.Open(CRecordset::dynaset,_T("Select EmpLogin from EmpApplList where AppLogin = '"+(((CVidserverDlg*)m_pWnd)->m_LoginInfo)+"'"));
m_EmpNames[i] = rs.m_EmpLogin ;
The query is getting executed properly but the problem is that i can't see the value in rs.m_EmpLogin where rs is an object of CRecordSet
I think that the values are not getting bound to the database fields????
i will be thankful for prompt replies