有没有为Delphi(Win32)DLL创建C头文件的工具? [英] Is there a tool which creates C header files for Delphi (Win32) DLLs?

查看:163
本文介绍了有没有为Delphi(Win32)DLL创建C头文件的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我只看过工具和一些创建Delphi的信息一个给定的C头文件的代码。

Until now I have seen only tools and some information for the creation of Delphi code for a given C header file.

但是,在Delphi第一的情况下,有一个Delphi接口声明和一个生成的DLL,没有C头。有没有可以提取必要信息的工具,并为DLL构建C头文件?

However, in the 'Delphi first' case, there is a Delphi interface declaration and a generated DLL, and no C header. Are there tools which can extract the necessary information and build a C header file for a DLL?

这样的工具可以有助于跨语言/平台项目。例如,使用C头文件,使用 jnaerator 。工具链将如下所示:

Such a tool could be helpful and time saving in cross-language / cross-platform projects. For example, with the C header file, it would be easier to create Java JNA binding code automatically with jnaerator. The tool chain would look like this:

Delphi源 - >创建C头 - 转换为Java绑定 - >从Java使用Delphi DLL

Delphi source -> create C header -> convert to Java binding -> use Delphi DLL from Java

推荐答案

Delphi自己的编译器可以使用-JPHNE参数从.pas文件中输出C / C ++头文件。

Delphi's own compiler can output C/C++ header files from .pas files, using the -JPHNE parameter.

这篇关于有没有为Delphi(Win32)DLL创建C头文件的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆