是否有这对于德尔福(Win32的)的DLL创建的C头文件的工具吗? [英] Is there a tool which creates C header files for Delphi (Win32) DLLs?

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

问题描述

到现在为止我只看到工具以及一些信息为创建德尔福的code代表一个给定的C头文件。

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

不过,在德尔福第一'的情况下,是一个Delphi接口声明和生成的DLL,并没有C头。有没有可以提取必要的信息,并建立一个C头文件,一个DLL的工具?

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头文件,它会更容易创建Java JNA使用的 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的自己的编译器可以从.PAS文件输出的C / C ++头文件,使用-JPHNE参数。

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

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

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