![]() |
ReportError() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: ErrorHandler.h |
virtual void ReportError( const std::string& rMethod, const std::string& rMessage, DWORD dwAdditionalData) const;
Report an error
if (!GetLog()) return; try { //Get the log CErrorLog* pLog; pLog=GetLog(); //Convert the number char aTmp[11]; ltoa(dwAdditionalData,aTmp,10); //Create the new message std::string sNewMessage(rMessage); sNewMessage+="Additional data: "; sNewMessage+=aTmp; //Report to the log pLog->ReportError(m_sClassName, rMethod, sNewMessage); } ERROR_UNKNOWN("ReportError")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |