🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1393

Re: Beginner's problem

#1393
From: Jim Melsom
Date: Wed, 10 Nov 1999 00:00
11 lines
1095 bytes
Jim Melsom wrote:
> This is the problem: as soon as the TClientDataset's Active property is
> set to true, the following error occurs:
> "src->QueryInterface(GetIID(),(LPVOID*)(&intf)). No such interface
> exists ..."

I see this same thing was asked and answered earlier and is caused by
the code generated (or not generated) when exporting a TProvider.
Casting the return value of  get_<aprovider> to IProvider* works around
it. Kind of a tricky gotcha for newbies but once again it shows how
helpful these newsgroups are.
Technical Details
Message-ID: <382A1153.2FAC@uniserve.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3829BDCB.1293@uniserve.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,a7a9b85ee66f916e
X-Google-Attributes: gidfcd2b,public
From: Jim Melsom <jmelsom@uniserve.com>
Subject: Re: Beginner's problem
Date: 1999/11/10
Message-ID: <382A1153.2FAC@uniserve.com>
X-Deja-AN: 547136871
Content-Transfer-Encoding: 7bit
References: <3829BDCB.1293@uniserve.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: jmelsom@uniserve.com
Newsgroups: borland.public.cppbuilder.database.multi-tier