You could use MFC ODBC classes CDatabase and CRecordset.
Or ADO
Or OLEDB
Or just the old (and deprecated DAO)