This function will retrieve the first error from the error stack. The error stack is per function call and allows to you retrieve not only the last error reported but all errors of one erroneous function call. A call to the next function call clears that error stack of the last function. Therefore, if you add another function between the function you wish to query, and the GetFirstError function, you will be prevented from getting the error information you require.
↧