Table of contents

General Methods

Method Description
DC_GetErrorString Returns the corresponding error message of the input error code.
GetVersion Returns the version info string of the SDK.

DC_GetErrorString

Returns the corresponding error message of the input error code.

const char* DC_GetErrorString(const int errorCode)

Parameters

[in] errorCode Error code.

Return Value

The error message.

Code Snippet

int errorCode = 0;
CDocumentNormalizer ddn;
CNormalizedImageResult* normalizedResult = NULL;
errorCode = ddn.Normalize("YOUR-SOURCE-FILE-PATH", "", NULL, &normalizedResult);
if (errorCode != DM_OK)
    const char* errorString = DC_GetErrorString(errorCode);
    //...do something with the errorString

GetVersion

Returns the version info string of the SDK.

static const char* dynamsoft::ddn::CDocumentNormalizer::GetVersion()

Return Value

The version information string.

Code Snippet

const char* versionInfo = CDocumentNormalizer::GetVersion();

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: