Re: Compile Error on Propputref
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Sun, 5 Jun 2005 19:31:28 -0400
"RichardF" <RichardF@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:19093789-4A4D-4EA9-8235-EB24C781E34B@xxxxxxxxxxxxx
> [propputref, id(5)]
> HRESULT Parent([in] IBoundingBox* newVal);
>
> When i compile with this method it produces the following error
> message. But when i change propputref to propput it compiles ok.
>
> ... \include\atlcom.h(1759) : error C2259: 'ATL::CComObject<Base>' :
> cannot instantiate abstract class
> with
> [
> Base=BoundingBox
> ]
> due to following members:
> 'HRESULT IBoundingBox::putref_Parent(IBoundingBox *)' : pure
> virtual function was not defined
> BoundingBox.h(32) : see declaration of
> 'IBoundingBox::putref_Parent'
How did you name the member function in your C++ class? It should be
put_Parent for [propput], but putref_Parent for [propputref]. In fact,
you can have both methods for the same property, with different
semantics.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: Compile Error on Propputref
- From: RichardF
- Re: Compile Error on Propputref
- References:
- Compile Error on Propputref
- From: RichardF
- Compile Error on Propputref
- Prev by Date: Compile Error on Propputref
- Next by Date: Calling out-of-process during WM_ENDSESSION
- Previous by thread: Compile Error on Propputref
- Next by thread: Re: Compile Error on Propputref
- Index(es):
Relevant Pages
|