wxSysErrorCode/Msg documented

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-17 12:16:41 +00:00
parent b14c14ff36
commit 6d516e09b3

View File

@@ -2504,6 +2504,11 @@ as the last system error code ({\it errno} or {\it ::GetLastError()} depending
on the platform) and the corresponding error message. The second form on the platform) and the corresponding error message. The second form
of this function takes the error code explitly as the first argument. of this function takes the error code explitly as the first argument.
\wxheading{See also}
\helpref{wxSysErrorCode}{wxsyserrorcode},
\helpref{wxSysErrorMsg}{wxsyserrormsg}
\membersection{::wxLogDebug}\label{wxlogdebug} \membersection{::wxLogDebug}\label{wxlogdebug}
\func{void}{wxLogDebug}{\param{const char*}{ formatString}, \param{...}{}} \func{void}{wxLogDebug}{\param{const char*}{ formatString}, \param{...}{}}
@@ -2559,6 +2564,31 @@ trace masks.
\item wxTraceOleCalls: trace OLE method calls (Win32 only) \item wxTraceOleCalls: trace OLE method calls (Win32 only)
\end{itemize} \end{itemize}
\membersection{::wxSysErrorCode}\label{wxsyserrorcode}
\func{unsigned long}{wxSysErrorCode}{\void}
Returns the error code from the last system call. This function uses
{\tt errno} on Unix platforms and {\tt GetLastError} under Win32.
\wxheading{See also}
\helpref{wxSysErrorMsg}{wxsyserrormsg},
\helpref{wxLogSysError}{wxlogsyserror}
\membersection{::wxSysErrorMsg}\label{wxsyserrormsg}
\func{const wxChar *}{wxSysErrorMsg}{\param{unsigned long }{errCode = 0}}
Returns the error message corresponding to the given system error code. If
{\it errCode} is $0$ (default), the last error code (as returned by
\helpref{wxSysErrorCode}{wxsyserrorcode}) is used.
\wxheading{See also}
\helpref{wxSysErrorCode}{wxsyserrorcode},
\helpref{wxLogSysError}{wxlogsyserror}
\section{Debugging macros and functions}\label{debugmacros} \section{Debugging macros and functions}\label{debugmacros}
Useful macros and functins for error checking and defensive programming. ASSERTs are only Useful macros and functins for error checking and defensive programming. ASSERTs are only