🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Beginner's problem

#1402
From: John Graham
Date: Sun, 14 Nov 1999 00:00
30 lines
1603 bytes
What that means is after the remote data module source code has been
generated, edit all the functions in the ...Impl.cpp source file that
contain:

    *Value = IProv;

so that they read:

    *Value = (IProvider*)IProv;

Some day Borland may see fit to fix this problem.  I was hoping it would be
fixed in update 2; no such luck.  Perhaps they're not aware of the problem?
Or perhaps they don't know how to fix it?

Regards,
John

Jim Melsom wrote:

> 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: <382EDBF1.335CC72C@salts.navy.mil>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3829BDCB.1293@uniserve.com> <382A1153.2FAC@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: John Graham <jgraham@salts.navy.mil>
Subject: Re: Beginner's problem
Date: 1999/11/14
Message-ID: <382EDBF1.335CC72C@salts.navy.mil>
X-Deja-AN: 548477497
Content-Transfer-Encoding: 7bit
References: <3829BDCB.1293@uniserve.com> <382A1153.2FAC@uniserve.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: U. S. Navy SALTS Project
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier