Setting of the basic dictionary
Set the basic dictionary to be included in the recognition engine. The basic dictionary is fixed and consists of two parts,
system
systemfat
You also need to specify the directory where the dictionary is stored.

    int msetsystemdict(char* dbsname);
    input:
    char* dbsname - Basic dictionary path name without the extension
    return:
    0 - Successful completion
    BUFFER_OVERFLOW - Number of built-in dictionaries exceeds JOCRMAXDICT
Note: Even in case of an error, dictionaries up to JOCRMAXDICT (12 in NGKOCR ver1.0) are set.
Note: Dynamic dictionary settings cannot be reset.
Note: Re-initialize by deleting the instance and then rebuilding.

Example:
#include "ocrdef.h"
#include "ocrco.h"
#include "cjocrstock.h"
#include "cjocrdict98.h"
#include "errcode.h"
...
....

CJocrDict* pjocrdict = new CJocrDict;
pjocrdict->msetsystemdict("c:\\dic\\feature\\system");
pjocrdict->msetsystemdict("c:\\dic\\feature\\systemfat");
int ret = pjocrdict->mloaddict();
if(ret == 0) {
    printf("Dictionary loaded successfully");
}
else {
    printf("Dictionary load error");
}
delete pjocrdict;