Converting C(++) code to Delphi code

Posted on 2006-04-12
Last Modified: 2010-04-05
I'm looking for a tool/ program that can automatically converts (C++) code to Delphi code.

I am using Borland C++ Builder as the C++ tool and Delphi 7 as the Delphi tool

Thanks in advance
Question by:GiantMatrix
    LVL 11

    Expert Comment

    Forget about it. A complete conversion is impossible because C++ has language features which cannot be transformed.
    It is also a task similar to writing a C++ compiler (no wonder it *is* a compiler). You will only find a handful of experts being able to do that.
    LVL 22

    Accepted Solution

    I'm not sure if there's a tool available to do this conversion

    but why u don't convert your CB code into Dll or Borland Packages (.bpl), so you can use the existing code without needing to the conversion

    Author Comment


    Nice idea, I will try it but then I will have a lot of dll's as my BCB project is quite big.

    I've found some tools for conversion like ( but those do convert from Delphi to C++ Builder :(

    All I am hoping for is NOT something that will take the whole source in one side and get me delphi code from the other side....I just need something that can help me...even with header files/ cpp files....buttom line something that will make my task a bit easier than just doing it all myself.

    So even if there is a tool that will rougly even make the conversion then I correct any mistakes that will be more than great.


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Adding SQL record under delphi 5 97
    Object was open using ADO and Delphi 2007 33 156
    System restore point 4 65
    Delphi XE10 Round Image 2 34
    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now