Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to resolve error C2259 while migrating vc2010 to vc2015 Visual studio

$
0
0

Facing issue while migrating 2010 visual studio to 2015 visual studio.any help would be appreciated.

class ATL_NO_VTABLE CWebHostCls :    public CComObjectRootEx<CComSingleThreadModel>,    public CComCoClass<CWebHostCls , &CLSID_WEBDialog>,    public IDispatchImpl<ICWebHostCls , &IID_ICWebHostCls, &LIBID_WEBHOST>,    public IObjectSafetyImpl<CWebHostCls , INTERFACESAFE_FOR_UNTRUSTED_CALLER>,#ifndef _ATL_NO_DOCHOSTUIHANDLER    public IDocHostUIHandler#endif
> "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcom.h(3578): > error C2259: 'ATL::CComContainedObject<contained>': cannot instantiate abstract class> with> [> contained=ATL::CAxHostWindow>  ]"> "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcom.h(3578): note: due to following members:> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcom.h(3578): note: 'HRESULT IAxWinAmbientDispatch::put_AllowWindowlessActivation(VARIANT_BOOL)': is abstract> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atliface.h(1501): note: see declaration of 'IAxWinAmbientDispatch::put_AllowWindowlessActivation'> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlcom.h(3578): note: 'HRESULT IAxWinAmbientDispatch::get_AllowWindowlessActivation(VARIANT_BOOL *)': is abstract"> > ```

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>