L3DT documentation
Large 3D terrain generator

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 CExtAPI has not been initialised by InitAPI, the message will be shown in a MessageBox with style MB_ICONERROR.

 
zeolite/functions/reporterror.txt · Last modified: 2017/08/31 06:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki