Can u tell me how to connect MS:visual c++ (version 6) fields to an access database using dao odbc and how to add, delete and modify records from a table.
not exactly sure if this is what your looking for. What I think you need to do is set up a DB provider and consumer model. To first make the provider you need to open up a new database project and fill out the info for the driver to be created. Then you have the choice of buiding a consumer app through the wizards provided (MFC AppWizard.exe) or Insert->ATL object -> data access -> consumer. Either way a header will be generated for you. #include the header onto your .cpp and make an instance of the class (not the accessor class) and just do myclass.Open(). This should open a connection and then you should beable to do things like MoveNext and Insert and all that fancy stuff.
is too few differences. MFC DAO and ADO wrappers are the same. And MFC ODBC wrapper also is the same. Maybe some small differences in the class names (one-two letters, no more) John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.