Delete
Delete the record of the seek pointer in the user dictionary
int mdel();
Return value
1.....Deleted successfully
0.....Unable to delete
Negative....FILE_WRITE_ERROR...File writing error
Example
#include "ocrdef.h"
#include "ocrco.h"
#include "cjocrstock.h"
#include "cjocrdict98.h"
"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");
}
ret = pjocrdict->mseek("漢");
if(ret < 0) {
printf("Error");
}
else if(ret == 0) {
printf("No pattern registered for 漢");
}
else {
ret = mdel();
if(ret == 1) {
printf("Deleted the pattern for 漢");
}
else {
printf("Unable to delete the pattern for 漢");
}
}
delete pjocrdict;