1. Computing & Technology

Delphi: Most Popular Articles

These articles are the most popular over the last month.
Virtual Key Codes
Symbolic constant names, hexadecimal values, and keyboard equivalents for the virtual key codes used by Windows.
Network traffic monitor
A free network (Internet / intranet) traffic (download / upload) monitor. Network traffic monitor allows you to quickly and easily examine the network usage of the local computer. Full Delphi source code included.
A Beginner's Guide to Delphi
A Beginner's Guide to Delphi Programming. Free online programming tutorial / course for beginner developers. Focus on Borland Delphi.
Execute External Program, File
Executing and Running Applications and Files from Delphi Code.
Date/Time routines - Delphi Programming
Date/Time Delphi functions and procedures in RTL: rtl reference delphi programming time routines ordinal position date function
String handling routines - Delphi Programming
String handling routines: rtl reference cr lf delphi programming dynamic array case sensitivity
Understanding Arrays in Delphi
The concept of arrays in Delphi is simple: arrays allow us to refer to a series of variables by the same name and to use a number (an index) to tell them apart. Arrays have both upper and lower bounds, and the elements of the array are contiguous within those bounds.
Interfaces In Delphi Programming 102
The 101 article was an introduction to interfaces and implementing them. This time we'll explore more topics related to working with interfaces. What to do when 2 interfaces define the same named method and you need to implement both? How to have properties in interfaces?
Understanding ViewState and Postback Processing in ASP.NET applications
A Beginner's Guide to ASP.NET Programming for Delphi developers: Chapter 18. Find out what events (and in what order) are generated when ASP.NET receives a request for a Web Form. Learn about the ViewState - a technique ASP.NET uses to maintain page state changes across postbacks.
DateTime Format for Access SQL
Ever got the awful " Parameter object is improperly defined. Inconsistent or incomplete information was
Embedded Databases For Delphi Projects
An embedded database is a a database that does not run in a separate process, but instead is directly linked (embedded or integrated) into the application requiring access to the stored data. An embedded database is hidden from the application’s end-user and requires little or no ongoing maintenance.
Pos function
Delphi's Pos function returns an integer specifying the position of the first occurrence of one string within another.
Decompiling Delphi
Whispering about reverse engineering Delphi applications: 'I have a Delphi program's .exe, can I decompile it and get the source?'
Database Programming Course
Free online database programming course for beginner Delphi developers. Focus on ADO techniques.
Exchanging Data over the Network using Delphi
Exchanging Data over the Network using Delphi. In this article we'll examine two Delphi components: TServerSocket and TClientSocket, both designed to let you read and write information over a TCP/IP connection - thus enabling you to write network-aware applications.
Interfaces in Delphi 101
If you are up to creating a rock solid (OOP driven) Delphi application in a way that your code is maintainable, reusable, and flexible the OOP nature of Delphi will help you drive the first 70% of your route. Defining interfaces and implementing them will help with the remaining 30%.
Delphi Tips 173 - 176
Delphi tip: How to split a string into an array
Accessing and managing MS Excel sheets with Delphi (Page 1/7)
Accessing and managing MS Excel sheets with Delphi. How to retrieve, display and edit Microsoft Excel spreadsheets with ADO (dbGO) and Delphi. This step-by-step article describes how to connect to Excel, retrieve sheet data, and enable editing of data (using the DBGrid). You'll also find a list of most common errors (and how to deal with them) that might pop up in the process.
String Types in Delphi (Delphi For Beginners)
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.
DBGrid to the Max
Contrary to most other Delphi data-aware controls, the DBGrid component has many nice features and is
Initialize Constant Arrays
Sometimes you need to declare a constant array in Delphi - a read-only array. You cannot change the value of a constant or a read-only variable. Therefore, while declaring a constant array you have to initialize it. Here are a few examples of declaring and initializing constant arrays in Delphi...
SQL in Delphi
Using Structured Query Language in Delphi.: tquery component delphi sql dbase tables interbase server component delphi
For, Repeat & While in Delphi
Loops allow you to execute a sequence of statements repeatedly, using a control condition or variable to determine when the execution stops. Delphi has three kinds of control loop: repeat statements, while statements, and for statements. Learn how to use loops in Delphi programming.
Creating and Using DLLs
A Dynamic Link library, or DLL, is a collection of routines (small programs) that can be called by applications and by other DLLs. Using Delphi, we can write and use our own DLLs, and we can call functions in DLLs developed with other systems / by other developers. Find out how.
Coloring the TDBGrid Delphi component
Coloring DBGrid. How to enhance the functionality of a TDBgrid component using colors
XML and Delphi
Everything you need to know about Delphi and the Extensible Markup Language. Find out about creating and parsing XML documents, look for parser components and more.
Understanding Keyboard Events
Get familiar with the OnKeyDown, OnKeyUp, and onKeyPress Delphi event procedures to respond to various key actions or handle and process ASCII characters along with other special purpose keys.
Introducing Borland Delphi - Page 1/3
A Beginner’s Guide to Delphi Programming: Chapter 1. What is Borland Delphi? Where to download a free version, how to install and configure it.
CheckBox inside a DBGrid
Adding components to a DBGrid. Here's how to place a check box into a DBGrid. Create visually more attractive user interfaces for editing boolean fields inside a DBGrid.
Sending Email Messages
Ok, let's get straight to the problem ... suppose you have an application that operates on some database
Manipulate .INI files / Delphi
The .INI files have a text-based file format for representing application configuration data in a format which is easily editable by humans and readable by a simple automatic parser. Learn how to use Delphi's TIniFile to read and write INI configuration files.
TClipboard.Cut-Copy-Paste
Working with the Windows Clipboard from a Delphi application - basic operations: Cut, Copy and Paste.
Understanding Pointer in Delph
An introduction to pointer data type in Delphi. What are pointers, why, when and how to use them.
Managing Ascii (Text) Files
Reading and writing to text (ascii) files using Delphi code. Find out how to read a line by line of a txt file and how to write some data back to the file.
Record (Struct) Type in Delphi
Learn about records, Delphi's data structure that can mix any of Delphi's built in types including any types you have created.
Free Screen Ruler
Screen RULER allows you to precisely measure anything on your computer screen. If you need to determine width and/or height of any object on your screen, Screen RULER is the tool to use. Transparency, units in pixels and millimeters and screen snapping are some of the features.
Hide, Slide And Fade Away Controls
In most complex form designs you would have some panels that a user can make visible or hidden. Maybe some controls on some other container controls should be made invisible due to some reasons. A simple Panel1.Visible := false; will make a panel invisible, but why not make it more eye candy by providing a hiding animation. The AnimateWindow API function enables you to produce special effects when showing or hiding windows.
Create an Internet Shortcut
Unlike regular .LNK shortcuts (that point to a document or an application), Internet Shortcuts point to an URL (web document). Here's how to create an .URL file, Internet Shortcut, using Delphi.
Using TClientDataSet
Looking for a single-file, single-user database for your next Delphi application? Need to store some application specific data but you do not want to user the Registry / INI / or something else?
Uploading files to a web server with ASP.Net
Let's enable uploading of binary files from a client browser to the web server in ASP.Net web applications. Delphi for .Net and ASP.NET provide an easy way to accept files from the client using HTMLInputFile ('HTML File Upload' HTML server control) and HTTPPostedFile classes.
ORMs for Delphi
Working with database data in Delphi can be really simple. Drop a TQuery on a form, set the SQL property, set Active and, voila, here's your database data in a DBGrid. Ok, you do need a TDataSource and a connection to a database, but that's just a few clicks away. Now you want to insert, update and delete data. That's also easy but can get messy. You fight with the corect SQL syntax, but finally have it laid out correctly. Can all this be done easily? The answer is yes: use an ORM!
Sorting records in Delphi DBGrid by Clicking on Column Title
Sorting records in Delphi DBGrid. How to sort records in Delphi DbGrid by clicking on the column title. Plus: how to change the appearance of the selected column title to reflect the sort order. Even more: how to change the cursor when moving over the DBGrid column titles.
Save a Web Page as MHT
Here's how to save a web page displayed inside a WebBrowser (TWebBrowser component) as a raw HTML file or into a single (MHT) file (MHTML format: web archive - single file) programmatically using Delphi.
Delphi Tips 261- 264
Delphi tip: Delphi applications that use BDE for database access require that you distribute the BDE with the application. Here's how to install the BDE on a client machine using an install program or manually.
Delphi OOP Course - Into
Free online Borland Delphi OOP Course: Chapter Overview.
Exchanging Data over the Network using Delphi - Part2
Exchanging Data over the Network using Delphi. An introduction to sending data over the network using Delphi and Indy. The article focuses on sending / receiving record data and raw (binary) data using TCP connections.
Web Forms navigation in ASP.NET - Part 1
Web Forms navigation in ASP.NET - Part 1. Exploring navigation techniques between Web Form pages: postbacks, direct navigation (using the <a> tag) and code-based navigation (using Server.Transfer and Response.Redirect).
Synchronizing Threads and GUI
Multi-threading in Delphi lets you create applications that include several simultaneous paths of execution. When several threads are running in the application a question arises: how to update your GUI (user interface) as a result of a thread execution. The question lies in the TThread class Synchronize method.
Delphi Programming Tips 25 ...
Delphi tip: Left, Mid, Right String
Understanding the TextBox ASP.NET control
Understanding the TextBox ASP.NET control. Taking a quick look at the TextBox ASP.NET web server control - the only control designed for user input. TextBox has several faces: single-line text entry, password entry or multi-line text entry.
IF & Case Statements in Delphi
If you want to control the flow of code execution depending on what the program has already done or what it has just encountered you need to use one of the two Delphi Pascal branching statements: if statements and case statements. Learn how.
System Tray Delphi application - Quick and Easy
Placing Delphi applications in the System Tray in easy steps. The perfect place form programs that are left running for long periods of time with no user interaction.
Understanding Delphi SETs
One of the Delphi language features not found in other modern languages is the notion of sets. Delphi's set type is a collection of values of the same ordinal type. Learn about Delphi sets to better understand Delphi source code.
Working with GIF images in Del
Working with GIF images in Delphi. Need to display an animated GIF image in a Delphi application? Even though Delphi does not natively support GIF image files formats (like BMP or JPEG) there are a few great (free source) components available on the Net, which add the ability to display and manipulate GIF images at run as well as at design time to any Delphi application.
Creating your first 'Hello World' Delphi Application - Page 1/3
An overview of application development with Delphi, including creating a simple project, writing code, compiling and running a project. Also, find out how to ask Delphi for help.
Parse Delimited String
There are many times when you need to split a string into an array of strings by using a character as
Adding components to a DBGrid
Adding components to a DBGrid. How to place just about any Delphi control (visual component) into a cell of a DGBrid. Find out how to put a CheckBox, a ComboBox (drop down list box), a DateTimePicker (calendar) and even an Image inside the DBGrid.
Searching for Files / Folders
Stop. This is the one and only solution to file searching. Use Delphi to find any file in any directory and/or subdirectory that match a certain mask. Start searching.
Intro to the Delphi Language
An introduction to Delphi Pascal. Before you start developing more sophisticated applications by using the RAD features of Delphi, you should learn the basics of the Delphi Pascal language.
Resource Files Made Easy (in Delphi applications)
How Delphi uses standard Windows-format resource files: icons, bitmaps and cursors.
Drag 'n' Drop in VCL
Delphi makes it easy to program dragging & dropping into our applications. We can even drag and drop from one form to another or from Windows Explorer to our application, or from-to what ever we want, as you will see.
Two Strings in ListBox
There are situations when you want to display a list of strings to the user, for example in the list box control, but also have a way to store one more additional string (or event an object instance) along the one displayed to the user. Here's how when using Delphi.
"Sender" in Event Handlers?
In a Delphi event handler, the Sender parameter indicates which component received the event and therefore called the handler. Find out how to exploit the powers of the Sender parameter: share event handlers and more.
Constructing the Database Connection String Dynamically at Run Time (in Delphi ADO applications)
When creating Delphi database applications that are to be run on various machines, the connection to the data source should not be hard-coded in the executable. This article (with the sample project) shows how to store database connection parameters (server and database name) in Registry and how to build the ConnectionString dynamically.
Run with Parameters
How to pass command-line parameters to your Delphi application and how to handle them.
Queries with ADO - DB/7
Chapter seven of the free Delphi Database Course for beginners. Take a look at how you can take advantage of the TADOQuery component to boost your ADO-Delphi productivity.
Guide to dbExpress
One of data connectivity options in Delphi is dbExpress. This articles provides an overview of dbExpress along with a collection of tutorials and articles on building database applications using this light-weight, cross-platform data access technology.
Filename Extensions in Delphi
List of the file extensions created (and used) by Delphi and what they all mean. Plus, get to know what Delphi generated files should be stored in a source control system.
Accessing and managing MS Excel sheets with Delphi (Page 2/7)
Accessing and managing MS Excel sheets with Delphi. How to retrieve, display and edit Microsoft Excel spreadsheets with ADO (dbGO) and Delphi. This step-by-step article describes how to connect to Excel, retrieve sheet data, and enable editing of data (using the DBGrid). You'll also find a list of most common errors (and how to deal with them) that might pop up in the process.
Free Delphi components - with source
Free components, with code, made by the visitors of the About Delphi Programming community.
Dynamic Link Libraries
Everything you ever wanted to know about DLLs and Delphi but didn't know where to look for answers (or were to afraid to ask)
Creating Components at RunTime
Most often when programming in Delphi you don't need to dynamically create a component. If you drop a component on a form, Delphi handles the component creation automatically when the form is created. This article will cover the correct way to programmatically create components at run-time.
Copy function
Delphi's Copy function returns a substring of a string or a segment of a dynamic array.
Delphi Tips and Tricks
Delphi tips, tricks and code snippets. Looking for a small code sample to help you make something big? It's here!
Borland Delphi 7 Studio
Borland Delphi 7 Studio: Released! Extra, Extra, read all about it! All about NEW features in the next generation design-to-deploy e-business development tool: Borland Delphi 7 Studio.
Drop down list (DBLookupComboBox) inside a DBGrid - part 2 (Page 2/2)
Drop down list (DBLookupComboBox) inside a DBGrid - part 2. Here's how to place a DBLookupComboBox into a DBGrid. Create visually more attractive user interfaces for editing lookup fields inside a DBGrid - place a DBLookupComboBox into a cell of a DBGrid.
My IP with Delphi
How to obtain a computer's IP address by using the Socket API and Delphi's Pascal.
Enter key := Tab key
Pressing the Tab key moves the input focus to next control and Shift-Tab to previous in the tab order of the form. When working with Windows applications, most users intuitively expect the Enter key to behave like a Tab key.
TColorButton - button with color properties
TColorButton - button with color properties. Full source code of the TColorButton Delphi component, an extension to the standard TButton control, with font color, background color and mouse over color properties.
Login Dialog Before Main Form
The MainForm of a Delphi application is a form (window) that is the first one created in the main body
Chat application with Delphi source
Full Delphi source code to a simple Chat application. Learn how UDP (User Datagram Protocol) broadcast can be used to find partners with unknown IP addresses in the network.
Accessing and managing MS Excel sheets with Delphi (Page 3/7)
Accessing and managing MS Excel sheets with Delphi. How to retrieve, display and edit Microsoft Excel spreadsheets with ADO (dbGO) and Delphi. This step-by-step article describes how to connect to Excel, retrieve sheet data, and enable editing of data (using the DBGrid). You'll also find a list of most common errors (and how to deal with them) that might pop up in the process.
BPL vs. DLL
An overview of creating and using 'Borland Package Libraries' and how they compare with 'Dynamic Link Libraries' in creating smaller Delphi applications.
Understanding Class Methods
Understanding and using Borland Delphi Class procedures / functions. What they are and how to find a practical use for them.
Keyboard Hook For Components
Intercepting keyboard input for controls that cannot receive the input focus. Working with keyboard hooks in Delphi.
Birth, Life, Death of a Form
Examining the life cycle of a Delphi Form - the central element of development in Delphi. See what's happening behind events OnCreate, OnActivate, OnShow, OnClose...
Functions and Procedures
Have you ever found yourself writing the same code over and over to perform some common task within event handlers? Yes? It's time for you to learn about programs within a program. Let's call those mini programs subroutines.
TreeView with check boxes and radio buttons
TreeView with check boxes and radio buttons. Here's how to add check boxes and radio buttons to a TTreeView Delphi component. Give your applications a more professional and smoother look.
A journey through the Delphi IDE - Page 1/2
A quick journey through the main parts and tools of the Delphi integrated development environment.
Inside the (Delphi) EXE
Storing more that just code in the application executable file. Working with resources from Delphi. How to embed a WAV, AVI and an MP3 file in a Delphi executable.
An introduction to server-side HTML controls and HTML tags in ASP.NET applications
Taking a look at the use of standard HTML tags and elements and the use of server-side HTML controls - from a perspective of a Delphi developer.
Displaying and editing MEMO fiels in Delphi's TDBGrid
Here's how to show the contents of a MEMO (textual BLOB) field in a TDBGrid. Plus: how to enable editing of a TMemoField's contents using a separate window.
UDP vs. TCP
Everybody is quite familiar with TCP. Most do know UDP and think it’s an inferior protocol, as it does not ensure that the data bytes sent will arrive at the other site. Thus, UDP imposes less network overhead than TCP and gives the programmer more freedom and more labor by forcing him to deal with the security of the data transport himself.
Open and Save - Creating Notepad
Working with common dialog boxes: Open and Save. How to create my own Notepad using Delphi. Part 1.
Use Adobe Acrobat (PDF) Fil...
Let's see how to to show an adobe acrobat (.pdf) file in a delphi application.
Overloading / Default Params
Extending Delphi functions and procedures with default (optional) parameters and method overloading.
Records in Delphi - Part 2
Records in Delphi - Part 2. Why and when to use variant records, plus creating an array of records.
Add Formatted Text to RichEdit
The TRichEdit Delphi control is a wrapper for a Windows rich text edit control. You can use a rich edit
Go MySQL
An overview of VCL components allowing you to access a MySQL database from Delphi using standard data controls without using BDE/ADO/ODBC. Plus a few MYSQL related tools.
Handling Windows Messages
One of the keys to traditional Windows programming is handling the messages sent by Windows to applications. Handling Windows Messages the Delphi way!
Delphi Tips 133 - 136
Delphi tis: Get computer name, Get Windows user name
Pictures inside a database - DB/3 - Page 1/5
Chapter three of the free Delphi database online course. Displaying images (BMP, JPEG, ...) inside an Access database with ADO and Delphi.
PDF Managing Tools
Need to create, encrypt or manage PDF (Portable Document Format) files from Delphi? Using the tools and components in this listing you will get powerful control of PDF documents in your applications. PDF is a worldwide standard for electronic documents. It was originally developed by Adobe.
How to Move and Resize Controls at Run Time (in Delphi applications)
While in most situations you will arrange all the controls on a Delphi form in a 'fixed' position, there are situations where you need to allow a user to change the placement and dimension of controls at run-time. Here's how to enable dragging and resizing controls with mouse, while the application is running.
Base Conversions
Borland Delphi functions for converting Int to Bin, Int to Hex, Int to Roman and vice versa.
ScreenThief - stealing screen shots over the Network
A free network screen shot grabber application, with source code. Learn how to send / receive raw (binary) data (screen shot images) using TCP connections.
Arrays as Parameters / Return
Arrays in Delphi allow us to refer to a series of variables by the same name and to use a number (an
Reading RSS (XML) Feeds
Depending upon who you talk to, a blog is a personal Web diary, a collection of short, dated discussions
Resize an Image Proportionally
In graphics "programming" a thumbnail is a reduced-size version of a picture. Here's an idea for your
Drawing an image in a cell of a Delphi DBGrid
Here's how to place an image into a cell of a TDBGrid. Enrich the visual presentation of data in Delphi database applications.
Owner vs, Parent
The differences between a Delphi component Owner and its Parent - briefly explained. Plus: when to use the Controls and Component properties of a Delphi component.
Dynamic PopUp Menu Items
How to add menu items to a Menu (or Popup menu) at run-time, how to respond to the OnClick event. Plus: how to extend the TMenuItem to hold custom string property.
Delphi history
Concise descriptions of Delphi versions and its history, along with a brief list of features and notes. Find out how Delphi evolved from Pascal to a RAD tool that can help you deliver high-performance, scalable applications ranging from desktop and database solutions to mobile and distributed applications for the Internet – not only for Windows but also for Linux and the .NET.
DBGrid with MultiSelect
DBGrid with MultiSelect. Multiple row selection in Delphi DBGrid - providing the ability to select multiple records within the grid. A Beginner's Guide to Delphi Database Programming: Appendix A.
AI Delphi Game Example
A Simple example of Artificial Intelligence using Delphi. The article explores Delphi approach to AI, using the pebble picking game. A simple game is used to show how computer can learn by correcting mistakes.
Delphi ZIP (Compress) VCL-s
A selected collection of open source, free, and commercial Delphi components to help you add ZIP / UNZIP functionality to your application. Compressing and deflating files and directories in well-known formats like ZIP, RAR, TAR, GZIP, CAB will not longer be a missing piece in your Delphi projects!
Your first MP3 Delphi player - part 1/4
See how to build a full-blown mp3 player with Delphi in just a few seconds. Even more: get the ID3 tag information from a mp3 file and change it!
Anatomy of a Delphi Unit (Delphi For Beginners)
Delphi For Beginners: Interface, Implementation, Initialization, Finalization, Uses and other funny words.
User / Application Data Folder
When in the need of storing some content related to your Delphi application on the user's hard disk, you should take care of the support for state separation of user data, user settings, and computer settings.
MaxLength For TListView Edit Control
The ReadOnly property of a List View, determines whether the user can change the contents of the control - caption of an item. Since using TEdit we (Delphi developers) are used to have the MaxLength property. Here's how to limit the number of characters a user can enter into the ListView's editor control.
Connecting to a database. BDE? ADO? - DB/2 - Page 1/4
Chapter two of the free Delphi database online course. How to connect to an Access database - the UDL file? Looking forward: the smallest ADO example.
Introduction to OOP Basics
Use Delphi to learn (or teach) object orientation. Delphi’s roots lie in Pascal, and so it has a sound, structured foundation. It is also strongly object oriented and provides many OO characteristics such as class inheritance, static binding and dynamic binding, and reference semantics. Chapters make extensive use of graded, worked examples to give students hands-on experience in the implementation of OO code.
Access / SQL Server Database Explorer with full Delphi source code
The ADPDBExplorer (About Delphi Programming Database Explorer) application allows you to connect to a Microsoft Access (MDB) database and/or SQL Server / MSDE database to explore a database structure, insert, edit or delete data. Features also include running 'free-hand' queries (select, insert, update, etc.) against the database using a simple query builder. A simple master-details relationships builder allows displaying and operating on joined tables.
Streams, streams, ... TStream
Streams, streams, ... TStream. A stream is what its name suggests: a flowing river of data. A stream has a beginning, an end, and you're always somewhere in between of these two points. Learn about using the TStream class in Delphi: how to use stream objects to read from, write to, or copy information stored in a particular medium.
File Name Utilities - Delphi Programming
File Name Utilities: rtl reference universal naming convention delphi code free delphi delphi programming
HTML page Scraping
The idea of this article is to show you the techniques used to download a page from the Internet, do
Send Data to Another App.
Learn how to send the WM_CopyData message between two Delphi applications to exchange information and make two applications communicate. The accompanying source code demonstrates how to send a string, record (complex data type) and even graphics to another application.
Database Table to XML and Back - Using Delphi
Creating XML files from Paradox (or any DB) tables using Delphi. See how to export the data from a table to a XML file and how to import that data back to the table.
Adjusting DBGrid column widths automatically
Adjusting Delphi's DBGrid column widths automatically. Here's a handy method to automatically fix the size of TDBGrid columns (at run-time) to fit the DBGrid width (remove the unfilled space at the right edge of the grid; and consequently remove the horizontal scroll bar) when the user resizes the container containing the grid.
Variable Scope (Delphi For Beginners)
Delphi For Beginners: Object Pascal Variable Scope.
Create(Nil, Self, Application)
When creating Delphi objects dynamically , that inherit from TControl, such as a TForm (representing
Fundamentals of Database Development (with Delphi) - DB/1 - Page 1/2
Chapter one of the free Delphi database online course. Delphi as the database programming tool, Data Access with Delphi...just a few words, Building a new MS Access database.
Exporting a TreeView to XML. Populating a TreeView from XML
Here's how to store TTreeView component items to XML (preserving the Text and other properties of a tree node) and how to populate a TreeView from an XML file.
ADO + mySQL ConnectionString
If your database choice is mySQL and you are using dbGO (ADO) components, over the mySQL ODBC 3.51 driver, this is how your TADOConnection's ConnectionString property should look ...
Using RTTI in Delphi
Delphi provided Runtime Type Information (RTTI) more than a decade ago. Yet even today many developers aren't fully aware of its risks and benefits. This article provides an overview of the RTTI usage in Delphi for Win32.
MD5 Hashing in Delphi
The MD5 Message-Digest algorithm is a cryptographic hash function. MD5 is commonly used to check the integrity of files. An MD5 hash value is a 32 digit hexadecimal number. Using Delphi, you can easily create a function to calculate the MD5 hash for a given file.
Compiler Version Directives
Preparing to code with no barriers. See how to overcome the compiler version problem: compiling Delphi code for various Delphi versions.
PosEx function
Delphi's PosEx function returns an integer specifying the position of the first occurrence of one string within another, where the search starts at a specified position.
Database Multithreading
To speed up data processing, for example, fetching data from the database to create reports, you can add an additional thread to fetch and operate on the result (recordset). Learn about the traps in writing Multithreaded Delphi Database Queries with dbGo (ADO).
High Performance Timer
The TStopWatch Delphi class implements a very accurate process execution timer and provides a set of methods and properties that you can use to accurately measure elapsed time.
Implementing PING without using raw sockets
Implementing PING without using raw sockets. Implementing Internet pings using Delphi and the Icmp.dll.
Learn about: properties, events and Delphi Pascal - Page 1/2
Create your second simple Delphi application allowing you to learn how to place components on a form, set their properties, write event handler procedures to make components cooperate together.
Virtual Key Code To Character
Windows defines special constants for each key the user can press. The virtual-key codes identify various virtual keys. In Delphi, the OnKeyDown and OnKeyUp events provide the lowest level of keyboard response. To use OnKeyDown or OnKeyUp to test for keys the user presses, you must use Virtual key codes to get the key pressed. Here's how to translate the virtual key code to the corresponding Windows character.
Delphi Thread Pool Using AsyncCalls
With AsyncCalls you can execute multiple Delphi functions at the same time and synchronize them at every point in the function or method that started them. Here's an example project taking advantage of the thread pool implementation with CancelAll and WaitAll.
Introducing Borland Delphi - Page 2/3
A Beginner’s Guide to Delphi Programming: Chapter 1. What is Borland Delphi? Where to download a free version, how to install and configure it.
What does #13#10 stand for?
You've certainly seen "#13#10" many times in Delphi source code. If you are wondering what those characters
Static vs. Dynamic Loading
Before you can call routines defined in DLL, you must import them. Functions exported from a DLL can be imported in two ways: by declaring an external procedure or function (static), or by direct calls to DLL specific API functions (dynamic). What should be used when: static or dynamic loading of DLLs in Delphi.
Project Files (.DPR)
Delphi organizes applications into what is called projects. A project is made up of the visual interface along with the code that activates the interface. Each project can have multiple forms, allowing us to build applications that have multiple windows. Find out about Delphi's Project File in this article!
Hide Page Control Tabs
The TPageControl Delphi control displays a set of pages used to make a multiple page dialog box. Each
Generics in Delphi
Generics, a powerful addition to Delphi, were introduced in Delphi 2009 as a new langage feature. Generics or generic types (also know as parametrized types), allow you to define classes that don't specifically define the type of certain data members. Get ready to use Generics.

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.