J
Jeff F
Any thoughts on correcting this error?
Here is the source:
// PrjFileInfo.h : Declaration of the CPrjFileInfo
#pragma once
#include "resource.h" // main symbols
#include "AdvShellX.h"
#include <comdef.h>
#include <shlobj.h>
// CPrjFileInfo
class ATL_NO_VTABLE CPrjFileInfo :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CPrjFileInfo, &CLSID_PrjFileInfo>,
public IDispatchImpl<IPrjFileInfo, &IID_IPrjFileInfo, &LIBID_AdvShellXLib,
/*wMajor =*/ 1, /*wMinor =*/ 0>,
public IPersistFile,
public IQueryInfo
{
public:
CPrjFileInfo()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_PRJFILEINFO)
BEGIN_COM_MAP(CPrjFileInfo)
COM_INTERFACE_ENTRY(IPrjFileInfo)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IPersistFile)
COM_INTERFACE_ENTRY(IQueryInfo)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public: // IPersistFile
STDMETHOD(GetClassID)(LPCLSID) { return E_NOTIMPL; }
STDMETHOD(IsDirty)() { return E_NOTIMPL; }
STDMETHOD(Load)(LPCOLESTR, DWORD);
STDMETHOD(Save)(LPCOLESTR, BOOL) { return E_NOTIMPL; }
STDMETHOD(SaveCompleted)(LPCOLESTR) { return E_NOTIMPL; }
STDMETHOD(GetCurFile)(LPOLESTR*) { return E_NOTIMPL; }
public: // IQueryInfo
STDMETHOD(GetInfoFlags)(DWORD*) { return E_NOTIMPL; }
STDMETHOD(GetInfoTip )(DWORD, WCHAR** );
private:
_bstr_t mFileName;
};
OBJECT_ENTRY_AUTO(__uuidof(PrjFileInfo), CPrjFileInfo)
Here is the source:
// PrjFileInfo.h : Declaration of the CPrjFileInfo
#pragma once
#include "resource.h" // main symbols
#include "AdvShellX.h"
#include <comdef.h>
#include <shlobj.h>
// CPrjFileInfo
class ATL_NO_VTABLE CPrjFileInfo :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CPrjFileInfo, &CLSID_PrjFileInfo>,
public IDispatchImpl<IPrjFileInfo, &IID_IPrjFileInfo, &LIBID_AdvShellXLib,
/*wMajor =*/ 1, /*wMinor =*/ 0>,
public IPersistFile,
public IQueryInfo
{
public:
CPrjFileInfo()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_PRJFILEINFO)
BEGIN_COM_MAP(CPrjFileInfo)
COM_INTERFACE_ENTRY(IPrjFileInfo)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IPersistFile)
COM_INTERFACE_ENTRY(IQueryInfo)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public: // IPersistFile
STDMETHOD(GetClassID)(LPCLSID) { return E_NOTIMPL; }
STDMETHOD(IsDirty)() { return E_NOTIMPL; }
STDMETHOD(Load)(LPCOLESTR, DWORD);
STDMETHOD(Save)(LPCOLESTR, BOOL) { return E_NOTIMPL; }
STDMETHOD(SaveCompleted)(LPCOLESTR) { return E_NOTIMPL; }
STDMETHOD(GetCurFile)(LPOLESTR*) { return E_NOTIMPL; }
public: // IQueryInfo
STDMETHOD(GetInfoFlags)(DWORD*) { return E_NOTIMPL; }
STDMETHOD(GetInfoTip )(DWORD, WCHAR** );
private:
_bstr_t mFileName;
};
OBJECT_ENTRY_AUTO(__uuidof(PrjFileInfo), CPrjFileInfo)