Article View: borland.public.cppbuilder.database.ado
Article #5285Re: Another Compact Database Problem!!!
From: Nigel Jones
Date: Thu, 14 Jun 2001 13:13
Date: Thu, 14 Jun 2001 13:13
45 lines
2222 bytes
2222 bytes
Mike,
Try using Project..Import Type Library.
Select the msjro one (called Microsoft Jet and Replication Objects 2.1
Library on
my machine).
Don't forget to untick the 'Generate Component Wrapper' box.
You can either make a new package from it or just create a unit.
You should then be able to use the classes and structures in this library
from within your program.
--
Nigel Jones, FASL
____________________________________________________________
"The views of the author may not necessarily reflect those of the company."
"Mike Collins" <mcollins@tynetec.demon.co.uk> wrote in message
news:3b289f06$1_2@dnews...
> Hi again, posted a message a couple of days ago, regarding compacting and
> repairing MS Access databases. Im using ADO and MS Jet Engine 4.
>
> Jerry Bloomfield pointed me to an application he had posted in CodeCentrol
> but it doesn't seem applicable as Im not using ODBC. I found some sample
> code from Microsoft but I can get any joy:
>
> #import "c:\Program Files\Common Files\System\Ado\msado15.dll"
no_namespace
> #import "c:\Program Files\Common Files\System\Ado\msjro.dll" no_namespace
>
> try
> {
> IJetEnginePtr jetPtr(__uuidof(JetEngine));
> jetPtr->CompactDatabase( database params i.e. provider & location)
> }
> catch()
> {
> }
>
> -any idears anyone, Im getting desperate :-)
>
> Thanks Mike
>
>
Technical Details
Message-ID:
<3b28b8a5_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b289f06$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,665caa8cc0e337c5 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-06-14 06:17:27 PST From: "Nigel Jones" <npj@fasl.co.uk> Newsgroups: borland.public.cppbuilder.database.ado References: <3b289f06$1_2@dnews> Subject: Re: Another Compact Database Problem!!! Date: Thu, 14 Jun 2001 14:13:31 +0100 Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 212.125.84.166 Message-ID: <3b28b8a5_2@dnews> X-Trace: dnews 992524453 212.125.84.166 (14 Jun 2001 06:14:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews