🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11439

Re: IMAPI

#11439
From: Roberto
Date: Wed, 11 Feb 2004 15:52
72 lines
3147 bytes
    Thanks Harris
    I get this site and and get the information to implement the
QueryInterface() AddRef()  and Release()

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfcnotes_tn038.asp

    But now I receive the ERROR : "There is no support for this interface"
from the ProgressAdvise()
    I have noted that QueryInterface()  have been called from
ProgressAdvise()
HRESULT STDMETHODCALLTYPE TDiscMasterProgressEvents::QueryInterface(const
_GUID &arg0 ,void **arg1 )
{
  if (arg0 == IID_IUnknown)
    {
        *arg1 = this;
        AddRef();
        return NOERROR;
    }
    return ResultFromScode(E_NOINTERFACE);
}

    Thanks
    Roberto


"Michael Harris" <techonos-NO-SPAM-@attbi.com> escreveu na mensagem
news:4028d2ec$1@newsgroups.borland.com...
> In that case, I would suggest a book focusing in COM technologies.
>
> "Roberto"  wrote in message
> >    Thanks for the help Harris
> >
> >     I not know what definition a have to put in QueryInterface()
AddRef()
> > and Release()  , it's a pure virtual and I have to make a definiton to
> make
> > this compile  , I 'm only tryng to make a dummy definiton
> >
> >     Thanks
> >     Roberto
> >
> >
> > "Michael Harris" <techonos-NO-SPAM-@attbi.com> escreveu na mensagem
> > news:4025472a$1@newsgroups.borland.com...
> > >
> > > "Roberto"  wrote in message
> > >
> > > >
> > > > and I get  "Exception class EOleSysError wit message "catastrophical
> > fail"
> > > > ???
> > >
> > > Most likely in here ..
> > >   STDMETHOD(QueryInterface)      (const _GUID &arg0 ,void
> > > **arg1 ){return(E_NOTIMPL);};
> > >
> > >  // nothing returned ...
> > >
> > >          ULONG  STDMETHODCALLTYPE AddRef(void ){return(AddRef());};
> > > // recursion ..
> > >
> > >          ULONG  STDMETHODCALLTYPE Release(void ){return(Release());};
> > >  // recursion ..
> > >
> > >
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <402a4fa5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4020ec9e@newsgroups.borland.com> <40214ea4$1@newsgroups.borland.com> <402179d9$1@newsgroups.borland.com> <4022e5ee$1@newsgroups.borland.com> <4023adef@newsgroups.borland.com> <40242620$1@newsgroups.borland.com> <4024cf8c$1@newsgroups.borland.com> <4024e275@newsgroups.borland.com> <4025472a$1@newsgroups.borland.com> <402621f5$1@newsgroups.borland.com> <4028d2ec$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6d1e2738a2e27717
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-11 08:10:43 PST
From: "Roberto" <casa@artecharao.com.br>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4020ec9e@newsgroups.borland.com> <40214ea4$1@newsgroups.borland.com> <402179d9$1@newsgroups.borland.com> <4022e5ee$1@newsgroups.borland.com> <4023adef@newsgroups.borland.com> <40242620$1@newsgroups.borland.com> <4024cf8c$1@newsgroups.borland.com> <4024e275@newsgroups.borland.com> <4025472a$1@newsgroups.borland.com> <402621f5$1@newsgroups.borland.com> <4028d2ec$1@newsgroups.borland.com>
Subject: Re: IMAPI
Date: Wed, 11 Feb 2004 12:52:04 -0300
Lines: 74
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: 200.148.45.144
Message-ID: <402a4fa5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076514725 200.148.45.144 (11 Feb 2004 07:52:05 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail