Article View: borland.public.cppbuilder.database.ado
Article #1493Re: Create new database problem
From: Viatcheslav V. Vassiliev
Date: Thu, 22 Apr 2004 18:52
Date: Thu, 22 Apr 2004 18:52
50 lines
2518 bytes
2518 bytes
Do not use #import in C++ Builder - you will have much problems for most
type libraries. Select "Project\Import type library" in IDE menu and select
"Microsoft ADO Ext. 2.x for DDL and security". This will create needed files
for you.
//------------------------------------------
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)
"Martin Moeller" <martin.moeller@moema.it> �������/�������� � ��������
���������: news:4087ff9c$1@newsgroups.borland.com...
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote:
>
> Thanks Viatcheslav, yet I seem to be too blockheaded for it:
>
> > Import ADOX type library and execute
> >
> > Adox_tlb::TCOM_Catalog cat = CoCatalog::Create();
> > cat->Create(strConn.c_bstr());
>
> How? My code is as follows but gives an error for 'Qualifier 'Adox_tlb' is
> not a class or namespace name'
>
>
> #import "C:\Programmi\File Comuni\System\Ado\msadox.dll"
>
> #include <comobj.hpp>
>
> namespace System
> {
> void __fastcall CheckSafecallResult(HRESULT hr)
> {
> OleCheck(hr);
> }
> }
>
> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
>
> Adox_tlb::TCOM_Catalog cat = CoCatalog::Create();
> cat->Create(strConn.c_bstr());
>
>
> Tks, Martin
>
>
Technical Details
Message-ID:
<40881473$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4087d2f4@newsgroups.borland.com> <4087ef31$1@newsgroups.borland.com> <4087ff9c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,270202afc138267d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-04-22 12:10:10 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <4087d2f4@newsgroups.borland.com> <4087ef31$1@newsgroups.borland.com> <4087ff9c$1@newsgroups.borland.com> Subject: Re: Create new database problem Date: Thu, 22 Apr 2004 22:52:38 +0400 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.234.218.42 Message-ID: <40881473$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082659955 213.234.218.42 (22 Apr 2004 11:52:35 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail