How to Access the Registry Using Windows API

Posted December 15th @ 8:55 pm by m3Rlin

You may, for some reasons not want to use Delphi’s TRegistry component but still want to use the system’s Registry. This may come in handy when creating applications for Windows NT/2000/XP/Vista. Delphi’s TRegistry component will raise an error when attempting to write a string value to the HKEY_LOCAL_MACHINE key. Well, the way to get over [...]

How to Set the Length of a String

Posted December 15th @ 7:01 pm by m3Rlin

The string length is automatically set but sometimes you want to change the length yourself. That’s because sometimes you have to have the same length of a string every time (when saving to binary files). You can always use the string[n] (ShortString) type but their maximum length is 256 characters.
!!Note: You CAN NOT set the [...]

« Previous EntriesNext Entries »