GetErrorString

#include "BiTwain.h"

 

BOOL CALLBACK GetErrorString(int iError, LPTSTR szMsg, DWORD dwBuf, LPDWORD pdwNeeded)

Description

This function retrieves the error text for the specified error code. If the dwBuf is less than the leght of the error text, the function returns FALSE and the third parameter contains the required size for storing the error text.

Parameters

Int

iError

Error code

LPTSTR

szMsg

String for error string.

DWORD

dwBuf

Legth of the szMsg parameter.

LPDWORD

pdwNeeded

Length of the string required to store error text.

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

TRUE on success, otherwise FALSE.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.