gpt4 book ai didi

delphi - 从 C 头文件自动创建 Delphi/Freepascal 接口(interface)单元

转载 作者:行者123 更新时间:2023-12-03 14:45:09 24 4
gpt4 key购买 nike

是否可以从 C 头文件自动生成接口(interface)单元?特别是,我想包装 HDF5 库,如果我可以避免手动编写接口(interface)单元,那就太好了。

最佳答案

自由 pascal 包括 H2PAS工具。

h2pas attempts to convert a C header file to a pascal unit. it can handle most C constructs that one finds in a C header file, and attempts to translate them to their pascal counterparts.

关于delphi - 从 C 头文件自动创建 Delphi/Freepascal 接口(interface)单元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12939214/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com