30th June 2008
hi all delphi reader, today i want to share how to delete or sent files to recycle bin so after deletetion we can retrieve again the file.
Here’s a Delphi procedure that can delete a file with the ability to undo by sending the file to the “Recycle Bin. “Function bFileDelete” will return True if the operation was successful. Read the rest of this entry »
Posted in Snippet, Tips | No Comments »
28th June 2008
hello, alldelphi.com reader todays tips is .. how to create a roll up form with animation. sure we now there are several component that can do that trick such as billenium and also one of the JEDI component. But surely if we can do it our self why buy or used another component right ? Read the rest of this entry »
Posted in Snippet, Tips | No Comments »
26th June 2008
Hello alldelphi.com users, we meet again today i want to show you some interesting snippet
Suppose you have a data-critical type of application where you would not want a non-authored user to work with the data. Such an application could automatically log out the current user if no user activity has taken place in a lengthy time.
To track a user’s idle time you could hook keyboard and mouse activity. Note, however, that installing a system-wide message hook is a very invasive thing to do and should be avoided if possible, since it will require your hook DLL to be loaded into all processes. Read the rest of this entry »
Posted in Snippet, Tips | 1 Comment »
24th June 2008
The real simplicity to this function actually comes from the hard work done by the encryption classes TDCP_cast256 and TDCP_sha1 which work seamlessly together to encrypt my string for me. To get a better understanding of how the encryption works lets take a look at some of the method calls used from the encryption classes:
TDCP_cast256.Create(Self) – The constructor method of the TDCP_cast256 class returns an object of type TDCP_cast256. Using this object we can call the EncryptString method. Read the rest of this entry »
Posted in VCL | No Comments »
24th June 2008
Hello, www.alldelphi.com readers, today i want to talk about Encryption, Cipher and Hashes after googling for some times i found some article that interesting enough that i want to share to you all alldelphi.com readers so here it go.
In this article we are going to cover how to install DCPcrypt Cryptographic Component Library (open source), how to call methods for encrypting and decrypting strings, and finally we will take a look at the advanced topic of encrypting files. Our examples relate to applications written in Delphi5 or similar. For our examples we assume you already have a basic understanding of Delphi but only a limited understanding of encryption components and techniques.
Read the rest of this entry »
Posted in VCL | 6 Comments »
21st June 2008
Hi AllDelphi.com Readers, today i want to upgrade my delphi 7 installation to codegear and i want to make it as clean install as possible so i uninstall all delphi 7 related including all the BDE Engine. then when i open my control panel i found one icon that really – really piss me off, there it stand the “BDE Administrator” icon proudly as like it want to make fun of me and say ..”hey you could not removed me…i will stay here as long as i want hahahaha “, did you guys ever have the feeling like that or stump to something like that ? what make it worse is that when i tried to search it on google no article can be found to show me how to delete that bde administrator icon on my control panel, i also found so many lines people said that bde has been abandon by Borland . Read the rest of this entry »
Posted in Tips | No Comments »
16th June 2008
Hi Guys, it’s been a while since my last posting here. There are alot of responsibility now on my job. Recently i got opportunity to play with threading again and this this time those multiple threading accesing one same TStringList.
for some of alldelphi.com user that has experienced on multithreading field, i think already know that borland Delphi standard TStringlist is not a thread safe. let say that i have learned it the hardway i took several scratching on the head and slap on my forehand before i realiase that the TStringList is not a thread safe, so i need to figure out how to make the stringlist become a thread safe.Luckyly for me that a quick serach on google show this source . Read the rest of this entry »
Posted in Snippet, Tips | 2 Comments »