Article View: borland.public.cppbuilder.database.ado
Article #1492Re: Create new database problem
From: Martin Moeller
Date: Thu, 22 Apr 2004 17:23
Date: Thu, 22 Apr 2004 17:23
33 lines
1792 bytes
1792 bytes
"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:
<4087ff9c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4087d2f4@newsgroups.borland.com> <4087ef31$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,270202afc138267d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-04-22 10:40:36 PST Reply-To: "Martin Moeller" <martin.moeller@moema.it> From: "Martin Moeller" <martin.moeller@moema.it> Newsgroups: borland.public.cppbuilder.database.ado References: <4087d2f4@newsgroups.borland.com> <4087ef31$1@newsgroups.borland.com> Subject: Re: Create new database problem Date: Thu, 22 Apr 2004 19:23:32 +0200 Lines: 35 Organization: Moe.Ma Italiana Srl X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 212.171.6.186 Message-ID: <4087ff9c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082654620 212.171.6.186 (22 Apr 2004 10:23:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail