Best resources for converting C/C++ dll headers to Delphi?

I would like to highlight the Jedi Api Library, it is the Delphi translation of the Windows SDK headers. Might save you a lot of work if you need to translate headers from the SDK and is of course a good sample of conversions!


Over at Rudy's Delphi Corner, he has an excellent article about the pitfalls of converting C/C++ to Delphi. In my opinion, this is essential information when attempting this task. Here is the description:

This article is meant for everyone who needs to translate C/C++ headers to Delphi. I want to share some of the pitfalls you can encounter when converting from C or C++. This article is not a tutorial, just a discussion of frequently encountered problem cases. It is meant for the beginner as well as for the more experienced translator of C and C++.

He also wrote a "Conversion Helper Package" that installs into the Delphi IDE which aids in converting C/C++ code to Delphi:

alt text
(source: rvelthuis.de)

His other relevant articles on this topic include:

  • Using C++ Objects in Delphi
  • Using C object files in Delphi

Article at Rudy's Delphi Corner


Also, CodeGear hosts a rudimentary translation tool called CToPas (written by Ural Gunaydin).