Questions tagged [delphi]
Delphi is a language for rapid development of native Windows, macOS, iOS, and Android applications through use of Object Pascal. The name refers to the Delphi language as well as its IDE, which is used to help edit and debug Delphi projects.
65 questions
1
vote
4
answers
223
views
Struggling vs A Clean rewrite vs extending by overwriting virtual functions
I'm constantly supporting a specialized downloader I wrote 5 years ago! It has to login and download from more then 40 sites. I have kept changing the code over and over as I encountered new sites or ...
1
vote
2
answers
2k
views
Calling Delphi code from C# program
I have dozens of Delphi (version 10.2.2 Tokyo) functions that I would like to be accessible from a C# MVC web project. These functions are mainly report queries that take a bunch of input parameters ...
1
vote
0
answers
2k
views
How to properly construct a TCP Tunnel in Delphi
I'm working into a project that needs to implement a Reverse Socks5 connection.
In practical terms, the browser (Chrome/FireFox/Opera/IE) will connect on a local socks server (127.0.0.1:8080), and on ...
1
vote
1
answer
651
views
How can Delphi BPL's be used from visual C++
Delphi BPLs do a DLL name mangling as explained in this German article
http://edn.embarcadero.com/article/27758 (use your favorite translator page if needed). The name mangling is obviously different ...
5
votes
4
answers
4k
views
How to sell an application? Licensing problems
I`ve built a simple but yet effective delphi-7 application that solves sudoku puzzles, and a keygen that produces a unique serial key for each PC. My purpose is not to make money, I want to understand ...
2
votes
2
answers
1k
views
Moving old desktop application to a robust platform [closed]
Several years ago I wrote a desktop application, a small accounting system, in Delphi 7, that is in user in a medium-sized company.
The code belongs to me. I ported another Accounting system that I ...
11
votes
1
answer
9k
views
Best practices for implementing MVVM and MVC in delphi Pascal
I'm a Delphi pascal programmer, I use the latest Embarcadero delphi XE, and I would like to take advantage of design patterns such as Model view controller and model view view-model.
However, there ...
1
vote
1
answer
120
views
Is it a bad idea to have many protected variables, events and procedures in a unit?
I am writing a full fledged p2p networking library on top of Indy's UDP server with an intention of publishing it online. The design I have implemented has a P2P manager ( TIdUDPServer ) which can act ...
0
votes
2
answers
507
views
Locking techniques
Delphi RAD libraries implement many thread friendly objects in a way which forces one to declare another object for storing the reference returned by that object's locking method. The object thus ...
1
vote
1
answer
956
views
Non-Recursive vs Recursive Locks?
I am thinking of using non-recursive locks; I have found them to be having performance superiority over the standard recursive locks (e.g. SimpleRWSync). I have mainly been using critical sections but ...
0
votes
3
answers
2k
views
Is it good practice on server/client systems to automatically install updates?
I'm working on an automated update system for a legacy server/client software package written in Delphi. The way I'm designing it is so the client's (customer's) server machine runs a service which...
...
0
votes
1
answer
262
views
Would it be possible to publish my code on an official site with a third-party library?
I'm building a rather large and extensive wrapper in Delphi for an email system called Mandrill. There are wrappers for this API in many other languages, but not for Delphi. So, I'm hoping to produce ...
5
votes
1
answer
1k
views
Delphi Build Server - Do I need to check in .dres files?
We're using final builder to build a Delphi project and the person managing the build server noticed that projects with no .dres files were not building because they're not in SVN and because they're ...
4
votes
1
answer
724
views
Multi-platform design with Delphi, Java, MySQL and CouchDB [closed]
What are the most obvious drawbacks to this idea for an enterprise(ish) model using the following technologies.
Browser based and native developed GUI using Delphi to connect to
Datasnap server (...
3
votes
1
answer
4k
views
Understanding HTTP Cookies in Indy 10 for Delphi XE2
I have been working with Indy 10 HTTP Servers / Clients lately in Delphi XE2, and I need to make sure I'm understanding session management correctly. In the server, I have a "bucket" of sessions, ...
1
vote
3
answers
2k
views
Methodology behind fetching large XML data sets in pieces
I am working on an HTTP Server in Delphi which simply sends back a custom XML dataset. I am not following any type of standard formatting, such as SOAP. I have the system working seamlessly, except ...
5
votes
2
answers
1k
views
Scripting custom drawing in Delphi application with IF/THEN/ELSE statements?
I'm building a Delphi application which displays a blueprint of a building, including doors, windows, wiring, lighting, outlets, switches, etc. I have implemented a very lightweight script of my own ...
16
votes
2
answers
649
views
Is there a precedent for the license on a compiler restricting the kind of development you can use it for?
It was recently let slip that the new EULA for Delphi XE3 will prohibit Client Server development with the Professional edition without the additional purchase of a Client Server license pack. This is ...
3
votes
0
answers
1k
views
Provide an OnChange event for an internal property which is controlled externally?
For fun and by request I am updating this ImageGrid component, a kind of listbox for images that has a FileNames property of type TStrings.
For ease of writing, I have been misusing its FileNames....
3
votes
2
answers
642
views
How to Document the Security/Encryption Code of an Application
I am working on an application that I developed a security layer for. It uses the hardware ID of the hard drive, MAC address and another hardware serial key, to lock the software a particular piece of ...
0
votes
1
answer
499
views
How to layout class definition when inheriting from multiple interfaces
Given two interface definitions ...
IOmniWorkItem = interface ['{3CE2762F-B7A3-4490-BF22-2109C042EAD1}']
function GetData: TOmniValue;
function GetResult: TOmniValue;
function GetUniqueID: ...
70
votes
11
answers
6k
views
Best Practices for Handing over Legacy Code
In a couple of months a colleague will be moving on to a new project and I will be inheriting one of his projects. To prepare, I have already ordered Michael Feathers' Working Effectively with Legacy ...
3
votes
3
answers
292
views
What is the best strategy for quickly implementing small business applications?
I'm not a software developer, but I have previously developed a project-specific Access application for another employer. My current employer would like me to help organize their workflow and data for ...
3
votes
1
answer
542
views
How did Delphi influence the .NET Framework?
As opposed to influence on the C# language, did Delphi influence the .NET Framework too? At first glance .NET is Microsoft's version of Java, but .NET has properties similar to Delphi. Are there other ...
18
votes
13
answers
4k
views
What features contributed to the evolution of Pascal?
I am compiling a detailed history of the Pascal language, and there are a few details I am missing.
There are so many features today that we take for granted. What features significantly contributed ...