Visit site About Delphi Programming
February 2012
4
votes
Heap? Stack? Memory Allocation in Delphi 101
About Delphi Programming
– in Delphi Memory Management :: When you start programming in Delphi you might get errors like "stack overflow". What is stack? How is memory managed in your Delphi programs? What is heap? Why do you not have to create instances of record types? Why do local variables have weird initial values? Read ...
3
votes
Run Your Delphi Application in Full Screen - Implement "F11 - Full Screen"
About Delphi Programming
– in Delphi TIPS :: I guess you know you can run your browser in full screen using the F11 shortcut key. Windows Explorer also supports this feature. Running in full screen, where an application UI covers the entire screen, over the TaskBar and any Desktop/Tool bars, is handy when a user has a ...
2
votes
How Do You Delete Dataset Records In a Loop?
About Delphi Programming
– in Delphi Database Development :: I guess that all Delphi developers have tried, at least once, doing some database development. When creating database applications you'll need to pick the right database for your needs, you need to pick the right set of Delphi components to connect to the database ...
6
votes
Free PDF Library for Delphi Developers - Quick PDF Library LITE
About Delphi Programming
– in Delphi and PDF :: Are you developing a Delphi application with a task to do PDF document manipulations? Portable Document Format, PDF, is a file format created by Adobe for document exchange. While there are many (commercial) Delphi libraries designed to help you create PDF and/or manipulate PDF ...
0
votes
Switch Languages / Keyboard Layouts in Your Delphi Application
About Delphi Programming
– in Delphi TIPS :: If you need to allow the user of your Delphi application to use different languages / keyboard layouts to input data, you would need to mimic the "Text Service and Input Languages" Control Panel applet. Using Control Panel you can specify the default language that you use to ...
January 2012
0
votes
Store RTF As a Resource - Load Resource RTF Into a TRichEdit
About Delphi Programming
– in Resources :: If your application needs external pre-made files like sounds and other raw data, beside distributing separate files for your application's use, you can add the raw data to your application as a resource. Here's how to store and load RTF (rich text document) data as a resource in ...
3
votes
Ensure NO #13#10 Ending When Using TStringList.SaveToFile
About Delphi Programming
– in TStringList :: The SaveToFile method of the TStringList class adds an empty line to the file. Here's how to remove that extra line (actually CRLF - #13#10) in your Delphi applications you need one line of text to really be one line of text in the saved document. Read the full article to learn ...
0
votes
Deactivating the TShellTreeView Delphi Control - Faking the Active Property
About Delphi Programming
– in Shell Controls :: Delphi's TShellTreeView component displays a hierarchical tree view of the system's shell folders and files. I have an application using TShellTreeView with otFolders and otNonFolders set for ObjectTypes. The actual shell tree is, by design, not visible, and is only presented to ...
0
votes
Real World: Upgrade From Turbo Delphi .Net To ?
About Delphi Programming
– in Real World Issues :: I've received an interesting email recently from a long time Pascal/Delphi user Jacques Brits. Jacques has an interesting problem to solve, I guess many could have, and was asking to help him pick the correct direction. Here's a section of the email: I suspect you might be ...
0
votes
Ignoring the "Variable 'btn' might not have been initialized" Warning? Do NOT!
About Delphi Programming
– in Pointers & Delphi :: Take a look at your Delphi application, the one you are developing for many days (weeks, years) ... when you hit Compile - how many compiler warnings do you see? Zero? Bravo! A few? A dozen, hundreds? Do you find in the list the "Variable 'btn' might not have been ...
1
vote
How To Auto Size Run-Time Added TListView Columns
About Delphi Programming
– in TListView :: Here's an interesting problem a user of the Delphi Programming Forum has regarding the use of the TListView control: "I want to create a list view at run-time. When creating the columns, I cannot successfully auto-size one column by assigning the AutoSize value (to true) ... The ...
1
vote
How Do You Test If a Delphi String Starts With a (Sub)String? What RTL Function is Faster?
About Delphi Programming
– in Delphi Strings :: Whatever type of applications you are creating using Delphi, you must be writing some code to handle strings. Delphi provides a healthy assortment of string operators, functions and procedures in RTL. Let's say that you need to determines whether the beginning of a string ...
1
vote
Delphi Programming Almanacs: 1998. - 2011. Something for Every Delphi Developer: Beginner or a Guru!
About Delphi Programming
– in Delphi Almanacs :: According to Wikipedia, an almanac is an annual publication containing tabular information in a particular field or fields often arranged according to the calendar. A Delphi Programming Almanac would then be an annual reference e-book (?) composed of articles, tutorials, tips ...
2
votes
No More Memory Leaks In OTL Thread Pool :)
About Delphi Programming
– in Delphi Threading :: What a nice New Year present! Just a few days after I wrote my Threaded Delphi Tasks In A Thread Pool - OTL (OmniThreadLibrary) Example article, Primoz Gabrijelcic (the author of the Omni Thread Library) informed me he was able to locate and fix the memory leak problem I was ...
December 2011
2
votes
Programmatically Check If Your 32-bit Delphi Application Is Running On 32-bit Or 64-bit Windows
About Delphi Programming
– in x86 vs x64 :: While I do have Delphi XE 2 (supporting native x64 development) I am still compiling some of my applications as 32-bit applications (waiting for some 3rd party to move to x64). Having my x86 (32-bit) application running on various Windows versions - I need a way to know if my 32 bit ...




