Article View: borland.public.cppbuilder.database.ado
Article #491Re: Using ADOX in C Builder 5
From: Viatcheslav V. Vassiliev
Date: Thu, 18 Aug 2005 06:51
Date: Thu, 18 Aug 2005 06:51
37 lines
2150 bytes
2150 bytes
Try something like this: OleVariant param = table; cat->Tables->Append(param); //------------------------------------------ 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) "Russell Allen" <russell.allen@bt.com> �������/�������� � �������� ���������: news:43035e33$1@newsgroups.borland.com... > > Hi all, > > I'm trying to use ADOX in C Builder 5. I'm trying to add a table to a > catalog using the following code: > > TCOM_Catalog cat = CoCatalog::Create(); > cat->Create(connectionString); > TCOM_Table table = CoTable::Create(); > cat->Tables->Append(table); > > When I hit that fourth line, I'm getting an error: > > "Type mismatch in parameter 'Item' (wanted 'TVariantInParam', got > 'TCOM_Table')" > > Any suggestions? This one's driving me mad! > > Many thanks, > > Russ
Technical Details
Message-ID:
<43042fe2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43035e33$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,56dde326c8b65584 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <43035e33$1@newsgroups.borland.com> Subject: Re: Using ADOX in C Builder 5 Date: Thu, 18 Aug 2005 10:51:26 +0400 Lines: 39 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; Original NNTP-Posting-Host: 85.93.138.132 Message-ID: <43042fe2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124347874 85.93.138.132 (17 Aug 2005 23:51:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail