这类C 函数指针 怎么转成delphi函数

新手上路,请多包涵

有一个第三方的C++的DLL,用Delphi 2007开发程序(新手水平),在DLL的头文件中,函数结构体比较复杂,有大神能给点思路吗?

C++头文件定义:

typedef int (*SetValueFunc)(const char* path, const char* value);
typedef const char* (*GetValueFunc)(const char* path);
typedef const ConfigNode* (*GetPropertysFunc)();

typedef struct  tagIProperty
{
    SetValueFunc     SetValue;
    GetValueFunc     GetValue;
    GetPropertysFunc GetPropertys;
}IProperty;

在C++调用:

 property->SetValue("0/baud_rate", "1000000") 
阅读 1.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题