Article View: borland.public.cppbuilder.database.ado
Article #1142Closing an ADOX Catalog
From: Robert Emmons
Date: Fri, 01 Oct 2004 14:05
Date: Fri, 01 Oct 2004 14:05
14 lines
1320 bytes
1320 bytes
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:
<4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,55c11d2c62688f7e,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: Robert Emmons <remmons@aurigen.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Closing an ADOX Catalog Date: Fri, 01 Oct 2004 10:05:18 -0400 Message-ID: <4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.193.14.50 X-Trace: newsgroups.borland.com 1096639360 68.193.14.50 (1 Oct 2004 07:02:40 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail