wiauDbgHelper2 function (wiautil.h)
The wiauDbgHelper2 function writes a message to a log file, or debugger, or both.
Syntax
void wiauDbgHelper2(
LPCSTR prefix,
LPCSTR fname,
LPCSTR fmt,
...
);
Parameters
prefix
Pointer to a string containing a prefix (such as "ERROR " or "WARN ") associated with the message.
fname
Pointer to a string containing the name of the function or method into which the call to wiauDbgHelper2 is inserted.
fmt
Pointer to a format string that specifies a variable argument list, which starts with an ANSI format string containing the message and any conversion specifiers. The ellipsis (...) specifies a variable number of arguments that are to be output. The text should be prefixed with the full name of the method or function generating the message in the format of "class::method, message-text".
...
Return value
None
Remarks
The wiauDbgHelper2 function enables those using it to write printf-style messages, with variable argument lists, to a log file or debugger. The following example demonstrates how this function might be used:
wiauDbgHelper2("ERROR", "MyFunc", "Buffer size too small - %d bytes", BufSize);
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | wiautil.h (include Wiautil.h) |