'Coding' Category
Updated SimpleStorage demos and added IDocument
As I promised, I updated the demos. I added two new demos. One showing how to manipulate collection of documents and the other to show how to Encrypt / Decrypt whole documents. I also made a change in the “Cromis.SimpleStorage.Collection.pas” unit. There is now a new “IDocument” interface which is very simple: IDocument = Interface(IInterface) [...]
What is new in SimpleStorage
As you probably know by now (or not) SimpleStorage is a set of interfaces to ease the manipulation of XML documents. It is based on OmniXML, a wonderful Delphi XML parser. Simple Storage aims to treat XML as a practical data storage and means of data serialization and transportation. I have written about its usage [...]
How to start a GUI process from service, under Windows Vista/7
Today I had a interesting challenge in front of me. I had to start a GUI application under Windows Vista or 7 with elevated privileges. And I had to start it from a restricted account. Why? Because the process was meant to start from a USB drive and act as a data synchronization tool. So [...]
How to correctly handle cryptography in ANSI and Unicode flavor
As you know, Delphi is now Unicode able, from Delphi 2009 and up. This had caused a lot of headaches to a lot of developers out there. Unicode is not easy, you need to understand how it works and know how to use it. It is maybe simpler for .NET developers because they had it [...]
XTEA (TEA) Delphi implementation available for download
I have updated the XTEA algorithm implementation and made it available for download. The algorithm works on array of bytes or on streams. You also have support functions that help you encrypt / decrypt strings. The interface is shown bellow. // XTEA encryption and decryption function function XTeaEncryptBytes(const Data, Key: TBytes): TBytes; function XTeaDecryptBytes(const Data, [...]