🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #984

Re: how to using dao

#984
From: Viatcheslav V. Vassiliev
Date: Tue, 22 Feb 2005 13:04
46 lines
2702 bytes
In IDE select "Project\Import type library" and choose "Microsoft Jet and 
Replication Objects 2.x Library".

//------------------------------------------
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)

"yag" <yagyog@tiscali.it> �������/�������� � �������� ���������: 
news:4219f986$1@newsgroups.borland.com...
> "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: <421b2dc1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4219ac0f@newsgroups.borland.com> <4219f580@newsgroups.borland.com> <4219f986$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,8e72e66a1c539ac3
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4219ac0f@newsgroups.borland.com> <4219f580@newsgroups.borland.com> <4219f986$1@newsgroups.borland.com>
Subject: Re: how to using dao 
Date: Tue, 22 Feb 2005 16:04:00 +0300
Lines: 48
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: 85.93.137.24
Message-ID: <421b2dc1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109077441 85.93.137.24 (22 Feb 2005 05:04:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail