problem with "afxdao.h"

I am using Visual C++, it seems like I could include either “windows.h” or “afxdao.h” only. So is there other way to access the database while using openGL function.