Setting up Optional Dictionaries (Diff Dictionaries)
Set the system dictionaries to be embedded in the engine. NGKOCR Ver.1.0 provides the following six optional dictionaries:

Dictionary NameRecord File NameKey File NameContent
diff0diff0.dbfdiff0.kefKaisho-style characters
diff1diff1.dbfdiff1.kefFaded characters
diff2diff2.dbfdiff2.kefBlurry characters
diff3diff3.dbfdiff3.kefNumbers
diff4diff4.dbfdiff4.kefLetters
diff5diff5.dbfdiff5.kefKana characters

	int msetdiffdict(char* dbfname);
	Input
	char*		dbfname;	Path name of the optional (diff) dictionary without the file extension
	Return value
	0.................Normal completion
	BUFFER_OVERFLOW...The number of embedded dictionaries exceeds JOCRMAXDICT
※Even in the case of an error, up to JOCRMAXDICT (12 in NGKOCR ver1.0) dictionaries are set.
※Dynamic dictionary reconfiguration is not possible.
※Re-initialization should be done by deleting the instance and reconstructing it.

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");
pjocrdict->msetdiffdict("c:\\dic\\feature\\diff0");
pjocrdict->msetdiffdict("c:\\dic\\feature\\diff1");
pjocrdict->msetdiffdict("c:\\dic\\feature\\diff2");
pjocrdict->msetdiffdict("c:\\dic\\feature\\diff3");
pjocrdict->msetdiffdict("c:\\dic\\feature\\diff4");
pjocrdict->msetdiffdict("c:\\dic\\feature\\diff5");
int ret = pjocrdict->mloaddict();
if(ret == 0) {
	printf("Dictionary loaded successfully");
}
else {
	printf("Dictionary load error");
}
delete pjocrdict;