Article ID: 194861
Article Last Modified on 12/1/2003
return AtlReportError(
CLSID_PolyCtl, _T("Must have between 3&100 sides"));
with:
// If your class is derived from CComCoClass<CMyClass,
// &CLSID_MyClass>:
return Error(_T("Must must have between 3 & 100 sides"));
// If not derived from CComCoClass<>:
return CComCoClass<CMyClass, &CLSID_MyClass>::Error(
_T("Must must have between 3 & 100 sides"));
inline HRESULT WINAPI AtlReportError(const CLSID& clsid, UINT nID,
const IID& iid, HRESULT hRes, HINSTANCE hInst)
with:
inline HRESULT WINAPI AtlReportError(const CLSID& clsid, UINT nID,
const IID& iid = GUID_NULL, HRESULT hRes = 0,
HINSTANCE hInst = _Module.GetResourceInstance())
inline HRESULT WINAPI AtlReportError(const CLSID& clsid, UINT nID,
DWORD dwHelpID, LPCOLESTR lpszHelpFile, const IID& iid, HRESULT
hRes,
HINSTANCE hInst)
with:
inline HRESULT WINAPI AtlReportError(const CLSID& clsid, UINT nID,
DWORD dwHelpID, LPCOLESTR lpszHelpFile, const IID& iid =
GUID_NULL,
HRESULT hRes = 0, HINSTANCE hInst = _Module.GetResourceInstance())
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCSTR lpszDesc, DWORD dwHelpID, LPCSTR lpszHelpFile, const IID&
iid,
HRESULT hRes)
with:
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCSTR lpszDesc, DWORD dwHelpID, LPCSTR lpszHelpFile,
const IID& iid = GUID_NULL, HRESULT hRes = 0)
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCSTR lpszDesc, const IID& iid, HRESULT hRes)
with:
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCSTR lpszDesc, const IID& iid = GUID_NULL, HRESULT hRes = 0)
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCOLESTR lpszDesc, const IID& iid, HRESULT hRes)
with:
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCOLESTR lpszDesc, const IID& iid = GUID_NULL, HRESULT hRes = 0)
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCOLESTR lpszDesc, DWORD dwHelpID,LPCOLESTR lpszHelpFile,
const IID& iid, HRESULT hRes)
with:
inline HRESULT WINAPI AtlReportError(const CLSID& clsid,
LPCOLESTR lpszDesc, DWORD dwHelpID, LPCOLESTR lpszHelpFile,
const IID& iid = GUID_NULL, HRESULT hRes = 0)
Keywords: kberrmsg kbbug kbfix kbnoupdate KB194861