Search code examples
.netdelphitclientdatasetmidas-server

Read a Delphi TClientDataset Files with .NET


I need to read Files that are written with the TClientDataset class from Delphi with .NET Code. The Solution mentioned here does not work for me.


Solution

  • "A dotNet program that does not run on Windows platform" means to me that you're deploying a Mono application. Possibly on Linux, if that's the case try WINE and see if the Delph app suggested above works as expected. If yes, your problem of leaving the dotnet app machine is solved as both will run on the same hardware without communication through network.

    EDIT: since the OP now specified that he's using MonoDroid and Monotouch, and therefore can't use Wine- the remaining options are:

    • Reverse engineer the format (consult a lawyer first to protect yourself from harm)
    • Ask Embarcadero for a definition of the file ( I don't put much hope on it)
    • Modify the Delphi/C++ Application to export the files in XML
    • Create an Delphi application to preprocess those *.cds and export them to XML before sending them to the iOS / Android machine.

    Of the four alternatives, the fourth one is possibly the fastest - the best one is the third.

    The first one can get you in trouble because of all those laws against rev engineer around the world ( in USA there are DMCA which I heard is very draconian - but IANAL and not even an US-citizen).

    The second one is a bet.