🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem using ADOConnection->OpenSchema

#2007
From: Daniel Stevenson
Date: Thu, 11 Dec 2003 06:03
24 lines
1828 bytes
I'm trying to return some information using the openschema as seen below


    Variant tvars[3] = { Unassigned(), Unassigned(), "tablename" };

    TADODataSet*  dataSet = new TADODataSet(NULL);
    std::auto_ptr<TADODataSet> auto_dataSet(dataSet);

    ADOConnection->OpenSchema(siPrimaryKeys , VarArrayOf(tvars, 2), NULL,
dataSet);

    //where tablename is the name of one of the tables within my database


This seems to compile ok but when it is executed it returns the following
error

    "Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another."

I unfortunately don't know a lot about OpenSchema and was using someone
else's code they posted earlier.

Any Help as to where I am going wrong would be greatly appreciated.
Technical Details
Message-ID: <3fd808b7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,dcb82e1dc41db4f2,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-12-10 22:09:01 PST
From: "Daniel Stevenson" <d.stevenson@ocreage.com.au>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Problem using ADOConnection->OpenSchema
Date: Thu, 11 Dec 2003 17:03:34 +1100
Lines: 26
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: 202.174.228.150
Message-ID: <3fd808b7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071122615 202.174.228.150 (10 Dec 2003 22:03:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail