转为相对路径 - ToRelativePath
函数简介
- 将给定路径转换为相对路径。
接口名称
ToRelativePath
DLL调用
long ToRelativePath(long instance, string path)
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| path | 字符串 | 要转换的路径(绝对路径)。 |
示例
// 示例代码待补充
返回值
返回相对路径字符串的指针,失败返回0。
注意事项
- 返回的字符串指针需调用 FreeStringPtr 接口释放内存。
