Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDelphi

Easily Convert C Code Into Delphi Code With Open Source Solution

convert-c-programs-into-delphi-in-a-second

Have you ever tried to convert your C programs into Delphi? If it is you? Here is the solution for you!

C-To-Delphi – This tool will convert most of your standard C code.

It contains a split view, with C on the left and Delphi on the right. The Delphi code gets updated in realtime when you edit the C code. The editors are kept in sync, so you can easily find how a specific piece of code was converted.

  • The Syntax checks of the generated code are verified (uses DelphiAST)
  • You can even run the generated code by pressing F9 (uses DWS)
  • You can drag/drop multiple C files to the application. It will find the.h files that belong to it, and convert all to .pas files in the same folder.
c-to-delphi-0-9-0-6640678

  • If the function main exists, a program will be generated. Otherwise a pascal unit with interface/implementation sections.
  • Converts routines and arguments
  • Converts for loops
  • Converts case statements
  • Converts structs
  • Converts enums
  • Converts 1 and 2-dimensional arrays
  • Converts many other common routines to Delphi equivalents (strcpy,strcat,strlen,printf,argv,argc,etc)
  • Converts classes

Head over and check out the full source code for C-To-Delphi over on GitHub.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni
Related posts
C++Delphi

Measure Heart Rate Using Delphi And C++ Builder With The Power Of ThingConnect IoT Device Component Pack

C++Delphi

Create Enterprise-Grade WebSockets Based Apps With Powerful Components For Delphi

DelphiShowcase

Incredibly Powerful Enhanced Terminal And Network Toolkit For Windows Is Built In Delphi

C++CodeRAD Studio

Learn How To Use C++ Explicit Virtual Overrides In Windows Development

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES