Article View: borland.public.cppbuilder.database.ado
Article #976Re: how to using dao
From: yag
Date: Mon, 21 Feb 2005 15:18
Date: Mon, 21 Feb 2005 15:18
31 lines
2040 bytes
2040 bytes
"Viatcheslav V. Vassiliev" <support@oledbdirect.com> ha scritto nel
messaggio news:4219f580@newsgroups.borland.com...
> When compacting Access db it must be disconnected. Compact always into
> another file. Later you may delete initial file and copy new file into its
> place.
>
> Import "Microsoft Jet and Replication Objects 2.x Library".
>
> #include <JRO_TLB.h>
> ...
> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
> IJetEngine * JetEngine = NULL;
> CoCreateInstance(CLSID_JetEngine, NULL, CLSCTX_INPROC_SERVER,
> IID_IJetEngine, (void**) &JetEngine);
> try
> {
> WideString Source = "Provider=Microsoft.Jet.OLEDB.4.0;"
> "Data Source=C:\\Test\\Test.mdb;";
> WideString Dest = "Provider=Microsoft.Jet.OLEDB.4.0;"
> "Data Source=C:\\Test\\Compacted.mdb;";
>
> JetEngine->CompactDatabase(Source.c_bstr(), Dest.c_bstr());
> }
> __finally
> {
> JetEngine->Release();
> }
> }
>
tnks... but which it is the DLL to import?
Technical Details
Message-ID:
<4219f986$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!atl-c02.usenetserver.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4219ac0f@newsgroups.borland.com> <4219f580@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,8e72e66a1c539ac3 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "yag" <yagyog@tiscali.it> Newsgroups: borland.public.cppbuilder.database.ado References: <4219ac0f@newsgroups.borland.com> <4219f580@newsgroups.borland.com> Subject: Re: how to using dao Date: Mon, 21 Feb 2005 16:18:01 +0100 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.51.20.158 Message-ID: <4219f986$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108998534 82.51.20.158 (21 Feb 2005 07:08:54 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!atl-c02.usenetserver.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail