Java/C/C++/C#/PHP to Pascal converter?
17,259
Solution 1
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:
I am tempted to say you'll have to do a lot of it by hand one way or another.
Solution 2
Java to Pascal converter: http://www.pascalgamedevelopment.com/archive/index.php/t-4845.html
Solution 3
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!
Author by
ThatJoeGuy
Updated on June 23, 2022Comments
-
ThatJoeGuy almost 2 years
Does anyone know if there is a Java/C/C++/C#/PHP to Pascal converter?
-
ThatJoeGuy almost 13 yearsYeah, tried c2pas, but might as well write the program in pascal from scratch than use that. It may work for dead simple programs though.
-
naXa stands with Ukraine almost 10 yearsObsolete. Link to java2delphi.jar is broken.