Re: Compile error
shawn <shawnl913@yahoo.com> wrote:
When convert a project to VS 2005 from a previous version of it, two
compile errors occur. Not sure how to fix them. Thanks for your help!
class ATL_NO_VTABLE CXpBMPButtonImpl:
public TBitmap,
public CWindowImpl< T, TBase, TWinParams>,
public CXpStyle<CXpBMPButtonImpl>
{
...
}
Error C3203: 'CXpBMPButtonImpl' : unspecialized class template can't
be used as a template argument for template parameter 'T', expected a
real type
I assume CXpBMPButtonImpl is itself a template - something like this:
template <typename T, typename TBase, TWinParams>
class ATL_NO_VTABLE CXpBMPButtonImpl
In this case, CXpStyle<CXpBMPButtonImpl> should be
public CXpStyle<CXpBMPButtonImpl<T, TBase, TWinParams> >
--------------------------------------------------------------------
CProxy_IKeywordsSearcherEvents()
{
IConnectionPointImpl<T,
&__uuidof(_IKeywordsSearcherEvents)>::IConnectionPointImpl<T,
&__uuidof(_IKeywordsSearcherEvents)>();
}
Error C2259: 'ATL::IConnectionPointImpl<T,piid>' : cannot instantiate
abstract class
This code doesn't make any sense. What it was supposed to achieve?
--
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