In the second line (FirstDB->OpenEx(_T(""), 0);) I'm choosing the data source manually. I have created a few data sources one of which is Microsoft Access managed txt file, and the other two .accdb files filld some tables, validated them using ODBC Administrator.
The programme crashes at line rsFirst.Open(); with some mysterious unhandled exception.