Get Number of Records
Get the number of currently registered user dictionary records
unsigned long mgetrecordnum();
Return value
Number of records
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->msetuserdict("c:\\dic\\feature\\user");
int ret = pjocrdict->mloaddict();
if(ret < 0) {
printf("Error");
}
unsigned long recordnum = pjocrdict->mgetrecordnum();
printf("There are %ld records registered in the user dictionary",recordnum);
delete pjocrdict;