🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MS Access database

#2409
From: Viatcheslav V. Vassiliev
Date: Mon, 21 Jul 2003 09:39
39 lines
2105 bytes
Import ADOX tyle library (Project\Import type library in menu - "Microsoft
ADO Ext. 2.x for DDL and Security"). It is good to add "ADOX" to class names
(i.e. change TTable to TADOXTable etc.).


#include <ADOX_tlb.hpp>;

...
 WideString dbName =
  "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
ExtractFilePath(ParamStr(0)) + "test.mdb";

 Adox_tlb::TCOM_Catalog cat = CoCatalog::Create();
 cat->Create(dbName.c_bstr());

You may also need to add

#include <comobj.hpp>

namespace System
{
 void __fastcall CheckSafecallResult(HRESULT hr)
 {
  OleCheck(hr);
 }
}

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.

"Dainius" <DainVai@midi.ppf.ktu.lt> �������/�������� � �������� ���������:
news:3f1bb251@newsgroups.borland.com...
> How to create in the real time mdb file ?
>
>
Technical Details
Message-ID: <3f1bb573@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!chi1.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f1bb251@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,a426b75586d925b9
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-07-21 02:53:01 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3f1bb251@newsgroups.borland.com>
Subject: Re: MS Access database
Date: Mon, 21 Jul 2003 13:39:39 +0400
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.247.201.57
Message-ID: <3f1bb573@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058780531 213.247.201.57 (21 Jul 2003 02:42:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!chi1.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail