Board index » cppbuilder » Shell Namespace - Getting Errors When Compiling

Shell Namespace - Getting Errors When Compiling

Manually Added the IShellfolder to COM Object ->

class ATL_NO_VTABLE TTIFolderMgrImpl :
  public CComObjectRootEx<CComSingleThreadModel>,
  public CComCoClass<TTIFolderMgrImpl, &CLSID_TIFolderMgr>,
  public ITIFolderMgr,
  public IShellFolder,
  public IPersistFolder

......

BEGIN_COM_MAP(TTIFolderMgrImpl)
  COM_INTERFACE_ENTRY(ITIFolderMgr)
  COM_INTERFACE_ENTRY(IShellFolder)
  COM_INTERFACE_ENTRY(IPersistFolder)
END_COM_MAP()
---------------------------------------------------
However Get The Following Errors When Compiling:

[C++ Error] atlcom.h(1849): E2352 Cannot create instance of abstract class
'CComObject<TTIFolderMgrImpl>'
[C++ Error] atlcom.h(1849): E2353 Class 'CComObject<TTIFolderMgrImpl>' is
abstract because of '__stdcall IShellFolder::ParseDisplayName(HWND__
*,IBindCtx *,wchar_t *,unsigned long *,_ITEMIDLIST * *,unsigned long *) = 0'

Any help would be appreciated.

Thanks

 

Re:Shell Namespace - Getting Errors When Compiling


Now that you added a base abstract class, you need to implement its
methods in the Impl class.

Alex

Quote
Joe Rich wrote:

[snip]

Other Threads