   Using MFC's ADO/DAO in pure win32
  I want to be able to using an MS Access database in one of my programs(Too much hassle for the end user to use mysql). However, the easiest way of accessing databases I have done so far was using ADO or DAO(I used DAO when programming with Visual Basic).But, ADO/DAO are both parts of the MFC library. How do I use an MFC lib in pure win32? So far I always got compile errors because Windows.h was already included.Is it possible, and how? And maybe even more important, what are the problems that might occur because of this?Toolmaker   -Earth is 98% full. Please delete anybody you can. 
  ADO is *not* part of MFC. (DAO is)ADO is COM based - as can be used easily from a Win32 based app - if you are happy using COM?eg. _RecordsetPtr   Rs1 = NULL;HRESULT hr = Rs1.CreateInstance( __uuidof( Recordset ) );Rs1->Open("select sysdate from dual","some connection string",  adOpenForwardOnly,  adLockReadOnly, -1 );//etc //etcTo make the ADO objects easily available to your code you need to use the #import directive to import the type libary.#import <msado15.dll> [edited by - stubble on July 31, 2003 8:07:53 AM]