Skip to content

Posts from the ‘Tips and Tricks’ Category

28
Mar
subversion_logo

Update SubVersion expert in Delphi XE, XE2

Yesterday I was working on my project and I decided to change my old backup system (which was a crazy thing in 2012, backing up every 2h which was filling up slowly but surely my drive). So I tried to replace this “system” with SubVersion.
Read more

27
Mar
md5_logo_n1

Get the MD5 of strings with Delphi (Unicode and Ansi)

Since Delphi 2007, an unit is dedicated to get the Md5 of a string (Unicode or Not). You could find it in the Embarcadero Rad Studio directory, sources :

D:\Program Files (x86)\Embarcadero\RAD Studio\9.0\source\soap\wsdlimporter\MessageDigest_5.pas

Just add this unit to the uses and declare this two functions.

function GetMd5(const Value: AnsiString): string; overload;
var
hash: MessageDigest_5.IMD5;
begin
hash := MessageDigest_5.GetMD5();
hash.Update(Value);
Result := hash.AsString();
end;

function GetMd5(const Value: UnicodeString): string; overload;
var
hash: MessageDigest_5.IMD5;
begin
hash := MessageDigest_5.GetMD5();
hash.Update(Value);
Result := hash.AsString();
end;

That’s all folks !

7
Jun
delphi7

Detecting a Delphi executable, DVCLAL, Manifest and PackageInfo

In this post I will try to expose several ways to detect a Delphi application.
Read more »

3
Jun
ResHacker

Listing, Adding, Editing, Deleting resources of EXE, DLL … Using Win32 API with Delphi

Today, I tried to work with resources included in a File. The file is an executable like DLL or EXE. There are some useful functions in the Win32 API that could help us, you don’t need to fully understand PE_FILE and how work an executable to change the resources.

Read more »