移除字库 - RemoveDict
函数简介
从OLA数据库中移除指定字库名称的图像数据。
接口名称
RemoveDict
DLL调用
int RemoveDict(long ola, long db, string dict_name);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| db | 长整数型 | 数据库连接句柄,由 OpenDatabase 接口生成。 |
| dict_name | 字符串 | 字库名称 |
示例
C++
long instance = CreateCOLAPlugInterFace();
long db = OpenDatabase(instance, "dict.db");
// 从数据库中移除整个字库"mydict"
int ret = RemoveDict(instance, db, "mydict");
Python
# 待补充
返回值
1 成功,0 失败。
注意事项
- 适用于批量删除字库数据的场景
- 如果移除失败,可以通过 GetDatabaseError 函数获取详细的错误信息
- 确保字库名称正确,且字库图像数据存在于数据库中
