Article View: borland.public.cppbuilder.database.multi-tier
Article #1179Re: "No such interface supported" when activating CDS
From: Harold Howe (TeamB)
Date: Tue, 14 Mar 2000 00:00
Date: Tue, 14 Mar 2000 00:00
34 lines
1544 bytes
1544 bytes
>>PS: this is only problem when converting code that was generated with
>>pre-patch BCB4 to post-patch BCB4.
>
>I have to disagree with your PS. When I originally stated the problem,
>I had no idea about pre- and post- patched alternatives. The problem
>occurs to a fresh project as well.
It looks like the post-patch version generates code that *correctly* uses
IProviderPtr, but forgets to add the cast in the assignment to Value.
STDMETHODIMP TMidasTestImpl::get_Query1(IProviderPtr* Value)
{
try
{
_di_IProvider IProv = m_DataModule->Query1->Provider;
IProv->AddRef();
*Value = IProv; // missing cast here
}
...
};
Do you agree?
>BTW thanks for the great bcbdev.com
Thank you, and you're welcome.
Harold Howe [TeamB]
http://www.bcbdev.com
Technical Details
Message-ID:
<8allds$qpa4@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<djeacso1i7ulaqd5cauatem4lvn1ms95tq@4ax.com> <38C54A2C.73265A32@tmt.de> <5knecsoqh91ajmf42qc8hu5iv7m8vm8sog@4ax.com> <fhthcs0jq039fu92qlcadj8ibeomqukist@4ax.com> <8ajmh8$p1111@bornews.borland.com> <lvrrcsgnns0fkblq524a88o34d98qk8qcr@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,570f9c66246e6c87 X-Google-Attributes: gidfcd2b,public From: "Harold Howe (TeamB)" <hhowe@bcbdev.com> Subject: Re: "No such interface supported" when activating CDS Date: 2000/03/14 Message-ID: <8allds$qpa4@bornews.borland.com> X-Deja-AN: 597373416 References: <djeacso1i7ulaqd5cauatem4lvn1ms95tq@4ax.com> <38C54A2C.73265A32@tmt.de> <5knecsoqh91ajmf42qc8hu5iv7m8vm8sog@4ax.com> <fhthcs0jq039fu92qlcadj8ibeomqukist@4ax.com> <8ajmh8$p1111@bornews.borland.com> <lvrrcsgnns0fkblq524a88o34d98qk8qcr@4ax.com> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.cppbuilder.database.multi-tier