![]() |
ReportErrorOS() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: ErrorHandler.h |
virtual void ReportErrorOS( const std::string& rMethod, const std::string& rMessage) const;
Report an error (Take the get last error)
if (!GetLog()) return; try { //Get the last error DWORD dwLastError; dwLastError=GetLastError(); //Format the message std::string sMessage; sMessage=rMessage; sMessage+=", with error code: "; //Convert the error code char aTmp[11]; itoa(dwLastError,aTmp,10); //Add it again sMessage+=aTmp; sMessage+=" "; sMessage+=ErrorCodeToString(dwLastError); //Get the log CErrorLog* pLog; pLog=GetLog(); //Report to the log pLog->ReportError(m_sClassName, rMethod, sMessage); } ERROR_UNKNOWN("ReportErrorOS")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |