<!-- Download Links -->
<!-- Add the rest of your HTML here -->
Introduction
CMTDaoDatabase is derived from CDaoDatabase and has a static CCriticalSection member variable. And CMTDaoRecordset is derived from CDaoRecordset. All calls to CDaoDatabase and CDaoRecordset public member functions is serialized by the static member variable of CMTDaoDatabase, so you can use these classes in a multithreaded enviroment.
Usage
To use CMTDaoDatabase, just replace CDaoDatabase with CMTDaoDatabase. You can create your own recordset classes with VC ClassWizard, and then replace all occurences of CDaoRecordset with CMTDaoRecordset in your source files of derived classes. You can also defined CMTDaoRecordset objects and use them as CDaoRecordset objects. And I am sure that there won't be any deadlock problem bothering you. Bug reports and revisions are welcomed, thanks.