Skip to main content

Questions tagged [delphi]

Delphi is a language for rapid development of native Windows, OS X and iOS applications through use of Object Oriented Pascal. The name also refers to the Delphi IDE, which is used to help edit and debug Delphi projects more efficiently.

Filter by
Sorted by
Tagged with
2 votes
3 answers
177 views

The code below groups a list by either number or letter, as seen below: 1A, 1B, 2A, 2B, 3A, 3B, 4A, 4B, 5A, 5B or 1A, 2A, 3A, 4A, 5A, 1B, 2B, 3B, 4B, 5B The option is configurable by the user via ...
Jsk's user avatar
  • 121
3 votes
1 answer
343 views

I'm building a small Delphi application where a user can input a file or directory manually by typing it or by selecting it from a dialog . Since it can be input manually, I want to ensure that I save ...
AlexV's user avatar
  • 141
2 votes
0 answers
93 views

(I asked this Question in stackoverflow (Delphi) and they suggested that I try here. Is there a site to submit my Delphi 7 coding to? Hi I am learning how to build compound components. My latest ...
dcs's user avatar
  • 21
3 votes
1 answer
791 views

Intro If you want to know, then about 10+ years ago, I started a journey on the (best in my country) color picker for WinXP, later Win7. Since now it is hardly compatible with Win10 and HiDPI (work in ...
Vlastimil Burián's user avatar
2 votes
2 answers
157 views

How can I make this code faster? the string can contain characters such as ", .?#" and possibly others. ...
hikari's user avatar
  • 123
1 vote
1 answer
292 views

I am trying to write a generic function for loading a function from a DLL library. I am in no way an expert on DLLs, that is why I ask. We have discussed it first in my Stack Overflow question to ...
Vlastimil Burián's user avatar
3 votes
1 answer
858 views

I hope someone can guide me in a way to make this code more efficient. Please explain the things you do simply because I'm no pro so more complex things I am unlikely to get. If you have issues with ...
CatCalledBlep's user avatar
3 votes
1 answer
3k views

I am sending a string from an anonymous thread to the UI with PostMessage in the following code: ...
user1580348's user avatar
3 votes
1 answer
3k views

This is a Delphi class, based on System.net.HTTPClient with a function for downloading a file from a URL and saving on a filename destination: ...
ar099968's user avatar
  • 201
2 votes
1 answer
854 views

I'm writing a communications library for a class. Part of the requirements is that semi-reliable communications, which leads me to this monstrosity: ...
Greg's user avatar
  • 21
4 votes
0 answers
93 views

I've written a procedure which allows serialized writing of a stream. I don't in any way consider this done, but this is the beginning of it. I know there are other implementations out there like this,...
Megan's user avatar
  • 41
2 votes
1 answer
2k views

I have a few columns in a DBGrid that I want to hide and show at different times depending on what the user wants to view. Rather than writing the following code; ...
Admiral Noisey Bottom's user avatar
1 vote
2 answers
215 views

I have this code and at the end of it, FastMM shows that there were memory leaks with all the objects of TSinc: ...
Luiz Carlos M. Jr.'s user avatar
9 votes
1 answer
1k views

I have developed small test project as a template for production project. In this template I've found a way that the application saves and loads its own settings (ini-file). Main Form1 will contain ...
Gordon Freeman's user avatar
3 votes
0 answers
694 views

For some purposes it can be highly desirable to use GetSystemTimePreciseAsFileTime() whenever it is available (i.e. Windows 8+) because the accuracy of ...
DarthGizka's user avatar
  • 2,831
3 votes
1 answer
964 views

This is a code written is Pascal (Delphi). It asks the user to think of a number between min_ and max_ and then guesses the ...
Tim's user avatar
  • 260
4 votes
2 answers
2k views

As part of processing card payments, before even attempting to process, I need to check and validate the card number to make sure it's valid. For this, I've encapsulated this validation in a record ...
Jerry Dodge's user avatar
5 votes
1 answer
483 views

I'd like to know if I translated a piece of code correctly from C++ to Delphi. It looks like it is working, but I have a feeling that I'm reading and writing into memory that I'm not supposed to using ...
Stefan Badenhorst's user avatar
2 votes
0 answers
635 views

I have created this unit containing a class derived from TXmlIniFile. This class uses the common TCustomInifile methods to write to and read from an XML file. It comes from an idea of Chris Rolliston ...
user1580348's user avatar
3 votes
1 answer
3k views

I've just finished this function and wanted to know if anyone know another way to do the same: ...
Matt Olsen's user avatar
3 votes
0 answers
127 views

I am reading the "Clean Code" book and trying refactoring my source code according to the principles "single level of abstraction"/"separation of concerns". How would you refactor the following code? ...
Ruben's user avatar
  • 31
4 votes
1 answer
453 views

I am currently working on a little binary patcher. My current code works fine but I do want my code to be optimized (fast) and as clean as possible. Could you all please help me review this? IDE: ...
Xor-el's user avatar
  • 43
2 votes
0 answers
3k views

I'm a newbie in Delphi and I'm trying to create a client/server application using INDY. I want to have a server that is capable not only of receiving messages and streaming, but also sending data to ...
SkynetAdmin's user avatar
5 votes
1 answer
820 views

I've created a MiniStack to assist in removing recursion from routines using a manual stack. Obviously if the stack is an object it lives on the heap and its ...
Johan's user avatar
  • 427
24 votes
1 answer
2k views

I wrote a small component (still in the works but working) which takes a large SQL script file, splits it into different "blocks" based on GO statements, and executes them one by one. The only major ...
Jerry Dodge's user avatar