Java/C/C++/C#/PHP to Pascal converter? [closed]
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 questionDoes 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:
- http://cc.embarcadero.com/item/26951
- http://www.drbob42.com/delphi/headconv.htm
- http://rvelthuis.de/programs/convertpack.html
- http://www.astonshell.com/freeware/c2pas32
- http://www.cadkas.com/ec2delphi.php
- http://c2pas.sourceforge.net
- http://wiki.lazarus.freepascal.org/H2Pas
- 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:
- http://www.marcocantu.com/tools/vb2delphi.htm
- 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').
精彩评论