Article View: borland.public.cppbuilder.database.multi-tier
Article #1732How to implement return Value of DispInterface ?
From: readnews
Date: Wed, 16 Jun 1999 00:00
Date: Wed, 16 Jun 1999 00:00
11 lines
872 bytes
872 bytes
in the interface implementation,
if I write the following codes,I mean that if the 'SQL' is empty
then return false (1) else return ok,
but in the client,I always get result S_OK (0),why?
STDMETHODIMP TAImpl::SetQuerySQL(BSTR SQL)
{
if (AnsiString(SQL)=="")
return S_FALSE;
return S_OK;
}
Technical Details
Message-ID:
<7k86t9$moi3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,72c3afaa23a4ca98,start X-Google-Attributes: gidfcd2b,public From: "readnews" <readnews@263.net> Subject: How to implement return Value of DispInterface ? Date: 1999/06/16 Message-ID: <7k86t9$moi3@forums.borland.com> X-Deja-AN: 490238541 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "readnews" <readnews@263.net> Newsgroups: borland.public.cppbuilder.database.multi-tier