Reading Delphi TClientDataset files using .NET.

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

+4
source share
3 answers

β€œThe dotNet program that does not run on the Windows platform” means that you are deploying a Mono application. Perhaps on Linux, if this case tries WINE and see if the Delph application proposed above , the one suggested above , works as expected. If yes, then the problem with exiting the dotnet applications from the device has been resolved, since both will work on the same hardware without communication through the network.

EDIT: since the OP now indicates that it uses MonoDroid and Monotouch and therefore cannot use Wine - the rest are parameters:

  • Reverse format engineer (consult a lawyer first to protect yourself from harm)
  • Ask Embarcadero to identify the file (I don't really hope for it)
  • Change your Delphi / C ++ application to export files to XML
  • Create a Delphi application to pre-process these * .cds and export them to XML before sending them to your iOS / Android computer.

Of the four alternatives, the fourth, perhaps the fastest, is the best of them - the third.

The first of you can cause trouble because of all these laws against reverse engineers around the world (in the USA there is a DMCA, which I heard is very draconian, but IANAL and not even a US citizen).

The second is the bet.

+3
source

You need to use Delphi to write a small application to read the cds file and write its contents to a file that you can read from .Net (you select the appropriate format). You can download free trial versions of Delphi. You can create the application on a separate computer. You can ftp enter the * .cds file from your problem platform to the computer where this new application will be located. Then you launch the application and ftp the newly created output file to your problem platform, and then read it from .Net.

You can move files from one platform to another using ftp. There is no reason to block yourself on one platform if there is a good tool that you need to use (or make on!) On another platform. :-)

0
source

In fact, the original binary CD format is documented in some detail in the corresponding US patent filed by Halesberg / Hansen. I must admit that later borland expanded it with several additional functions (such as support for nested datasets), but basically it’s the same format and with a little digging in midas sources (they released it back in d2010), I can build my own parser

0
source

All Articles