开发者

Java/C/C++/C#/PHP to Pascal converter? [closed]

Closed. 开发者_开发百科This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

Does anyone know if there is a Java/C/C++/C#/PHP to Pascal converter?


H2Pas is a popular tool to convert C headers to Pascal. I don't know of any to actually convert C code to Pascal code though.

From a quick google search, I see several that may or may not be good:

  • http://cc.embarcadero.com/item/23991
  • http://c2pas.sourceforge.net/

I am tempted to say you'll have to do a lot of it by hand one way or another.


Java to Pascal converter: http://www.pascalgamedevelopment.com/archive/index.php/t-4845.html


C to Pascal converters:

  1. http://cc.embarcadero.com/item/26951
  2. http://www.drbob42.com/delphi/headconv.htm
  3. http://rvelthuis.de/programs/convertpack.html
  4. http://www.astonshell.com/freeware/c2pas32
  5. http://www.cadkas.com/ec2delphi.php
  6. http://c2pas.sourceforge.net
  7. http://wiki.lazarus.freepascal.org/H2Pas
  8. http://wiki.freepascal.org/Chelper

Tips for conversion from C:

  • http://rvelthuis.de/articles/articles-convert.html
  • http://rvelthuis.de/articles/articles-pchars.html
  • http://rvelthuis.de/articles/articles-cobjs.html
  • http://rvelthuis.de/articles/articles-cppobjs.html
  • http://www.awitness.org/delphi_pascal_tutorial/c++_delphi

Biggest time saver tip for header conversion from C is to find a VB header and convert it with VB converter mentioned in other answer. This was almost always fully automated and changes I had to make were none or minor!


VB to Pascal converters:

  1. http://www.marcocantu.com/tools/vb2delphi.htm
  2. http://www.vbto.net


There was released Android2DelphiImport tool a short time ago. This tool is designed for XE5, and automates the import unit writing by generating a pascal wrapper unit from jar. It is a commercial package.
Here are another two similar tools - Utility to generate Java Android class and jar file interfaces for Delphi XE5 Firemonkey ('JavaToPas' and 'JavaImport For Android').

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜