====== ReportError ====== ===== Description ===== Sends an error message to the parent application (e.g. L3DT). ===== Function prototype ===== void CExtAPI::ReportError(const char* lpErrorMessage); ===== Arguments ===== ^ Name ^ Type ^ Comment ^ | lpErrorMessage | const char* | Pointer to a C-style string containing the error message. | ===== Return value ===== None (void). ===== Comments ===== ==== Use this function! ==== Plugins should use ReportError in preference to their own error handling methods (such as MessageBox), as this function also logs the error message to a file for easy debugging (see log.txt). ==== What if CExtAPI isn't initialised? ==== If [[zeolite:classes:CExtAPI]] has //not// been initialised by [[zeolite:functions:InitAPI]], the message will be shown in a MessageBox with style MB_ICONERROR.