Advertisement

07.02.2008 at 12:00AM PDT, ID: 23532658
[x]
Attachment Details

Regarding Closing DAO

Asked by davinder101 in Windows MFC Programming, Microsoft Access Database, Windows ATL / WTL / COM Programming

Tags: DAO, DAO3.6

Hello All,
                    I am using DAO to create a MS Acess database and add tables and other objects using DAO360.dll. i have used DAO by using #import directive .I have used _DBEnginePtr and DatabasePtr classes
to create database .After creating tables and other objects i closed the database using Close() of Database object, but when i am trying to run that module again to create another mdb file i gives unhandled Exception
(Access voilation) message . is something missing in closing DAO procedure????

Plz tell me how to close DAO after using it in VC++(6.0).How to release DBEnginePtr reference created
using CreateInstance(_uuid(DBEngine));

Plz help me out...........
its very urgent...........
waiting 4 reply.............

ThanksStart Free Trial
[+][-]07.02.2008 at 12:05AM PDT, ID: 21914080

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 12:11AM PDT, ID: 21914105

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 12:32AM PDT, ID: 21914188

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 12:52AM PDT, ID: 21914258

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:17AM PDT, ID: 21923561

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows MFC Programming, Microsoft Access Database, Windows ATL / WTL / COM Programming
Tags: DAO, DAO3.6
Sign Up Now!
Solution Provided By: alb66
Participating Experts: 3
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628