Article View: borland.public.cppbuilder.database.ado
Article #1143Re: Closing an ADOX Catalog
From: Viatcheslav V. Vassiliev
Date: Sat, 02 Oct 2004 07:17
Date: Sat, 02 Oct 2004 07:17
26 lines
1873 bytes
1873 bytes
For me your code works (BCB6). I sent you project that works.
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Robert Emmons" <remmons@aurigen.com> ???????/???????? ? ???????? ?????????:
news:4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com...
> I open an catalog in ADOX, but I cannot close it. Here is my code:
>
> Adox_tlb::TCOM_Catalog cat = CoCatalog::Create();
> Variant linkDbPathConnectStr =
> WideString("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
> + linkDbPath);
> cat->set_ActiveConnection(linkDbPathConnectStr);
> cat.Release();
>
> I also tried cat->Release(), but it genrerates an error "R6025 - pure
> virtual function call." Either way, the MS-Access database does not
> close.
>
> How can I close the database connection?
Technical Details
Message-ID:
<415e55f2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,55c11d2c62688f7e X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com> Subject: Re: Closing an ADOX Catalog Date: Sat, 2 Oct 2004 11:17:07 +0400 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 213.234.218.42 Message-ID: <415e55f2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096701426 213.234.218.42 (2 Oct 2004 00:17:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail