[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-dcom
Subject:    Re: compile error C2259
From:       "Johnston, Michael" <Michael.Johnston () GALILEO ! COM>
Date:       2001-02-26 13:44:20
[Download RAW message or body]


Check all of your interface methods, make sure
the .idl .h and .cpp function prototypes match.

Mike J.

-----Original Message-----
From: Peter Hu [mailto:Hzj@AOL.COM]
Sent: Saturday, February 24, 2001 10:34 AM
To: DCOM@DISCUSS.MICROSOFT.COM
Subject: compile error C2259


When I add base class public CWindowImpl<CTBWindow>
to my class, I got the following compile error:

c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) :
error C2259: 'CComObject<class CTBWindow>' : cannot instantiate abstract
class due to following members:
        c:\program files\microsoft visual
studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template
member function 'long __stdcall ATL::CComCreator<class ATL::CComObject<class
CTBWindow> >::CreateInstance(void *,const struct _GUID &,v
oid ** )'

Here is my class:

class ATL_NO_VTABLE CTBWindow :
    public CComObjectRootEx<CComSingleThreadModel>,
    public CComCoClass<CTBWindow, &CLSID_TBWindow>,
    public ITBWindow,
    public CWindowImpl<CTBWindow>
{
public:
    CTBWindow()
    {
    }
..
}

Any pointers are appeciated.

Peter

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request@DISCUSS.MICROSOFT.COM

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request@DISCUSS.MICROSOFT.COM

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic