🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using ADOX in C Builder 5

#486
From: Russell Allen
Date: Wed, 17 Aug 2005 15:56
19 lines
1369 bytes
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: <43035e33$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,56dde326c8b65584,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Russell Allen" <russell.allen@bt.com>
Sender: "Russell Allen" <russell.allen@bt.com>
Reply-To: "Russell Allen" <russell.allen@bt.com>
Subject: Using ADOX in C Builder 5
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 193.113.57.167     
X-Forwarded-For: 10.228.239.187
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43035e33$1@newsgroups.borland.com>
Date: 17 Aug 2005 08:56:35 -0700
X-Trace: newsgroups.borland.com 1124294195 207.105.83.66 (17 Aug 2005 08:56:35 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail