I'm trying to use a MFC DLL to access VB COM objects in order to white-box test them. The COMs are middleware between a web front-end application and a MSSQL7 database, so the VB references ADO to make the database calls. When I build my DLL in Visual C++, I get declaration errors because it doesn't recognize the types associated with the data connection (_Connection, _RecordSetPtr, etc). I tried importing the ADO type libraries before the COM objects, with no effect on the errors. What typelib do I need to reference and how do I make the call in order to get my C++ project to recognize the ADO types before trying to use them when it imports the COM objects?