Bewerken

Delen via


WIAS_LERROR macro (wiamdef.h)

The WIAS_LERROR macro is obsolete. It is recommended that the WIAS_ERROR macro be used instead.

The WIAS_LERROR macro writes a diagnostic WIA_ERROR message to the log file.

Syntax

void WIAS_LERROR(
   pILog,
   ResID,
   Args
);

Parameters

pILog

Pointer to an IWiaLog Interface.

ResID

Specifies the resource ID. This value should be set to WIALOG_NO_RESOURCE_ID.

Args

format_string, ... - Specifies a variable argument list, which starts with an ANSI format string that describes the message and any format identifiers. The ellipsis (...) specifies a variable number of arguments that need to be output. The error text should be prefixed with the full name of the method or function and generate the message in the format of "class::method, error-text".

Return value

None

Remarks

The following is an example of how the macro can be used:

WIAS_LERROR(g_pIWiaLog, WIALOG_NO_RESOURCE_ID, ("MyClass::MyMethod, This is my text and my lValue = %d", lValue));

The WIAS_LERROR macro is obsolete and not recommended for use because it does not record its output to the Wiatrace.log diagnostic log file. It is recommended that the WIAS_ERROR macro be used instead.

Requirements

Requirement Value
Minimum supported client Obsolete, use WIAS_ERROR instead.
Target Platform Desktop
Header wiamdef.h (include Wiautil.h)

See also

WIAS_ERROR

WIAS_LHRESULT

WIAS_LTRACE

WIAS_LWARNING