Most voted "delphi" questions
Delphi is a language for the rapid development of native applications for Windows, OS X, iOS and Android applications. The name refers to both the Delphi language (a modern evolution of Object Pascal) and its IDE, which is used to help edit and debug Delphi projects.
Learn more…1,390 questions
Sort by count of
-
35
votes1
answer1899
viewsAccess to the DLL library made in Delphi from Java
I am developing a tool for biometric recognition using the SDK provided in DLL format, developed in Delphi. For DLL access from Java, I am using JNA. The digital template (the most important part)…
-
29
votes7
answers13486
viewsIs Delphi an IDE or programming language?
Through a question that appeared here What is a programming language, IDE and compiler?, I had a question: Is Delphi an IDE or programming language? I have heard programmers working with Delphi say…
-
20
votes2
answers3578
viewsHow to encrypt using an asymmetric encryption algorithm in Delphi?
How to encrypt using an asymmetric encryption algorithm in Delphi?
-
18
votes1
answer285
viewsWebservice Registering dll
I have the following code: CoInitialize(nil); try DM_Principal.pLarWS := CreateComObject(LarWS_TLB.CLASS_WS) as IWS; except WinExec( 'regasm LarWS.dll /tlb:LarWS.tlb',SW_HIDE); Screen.Cursor :=…
-
16
votes2
answers1619
viewsMulti-core Cpus - Why doesn’t my application use all the processor cores?
I have a doubt I can’t find a convincing answer. There is an application developed in Delphi 7, and in an extremely complex routine (it takes about 2 hours) we notice that it is only used for the…
-
15
votes1
answer309
viewsConvert symbol to String (%F0%9F%8C%A0)
The symbol is equal to %F0%9F%8C%A0, but how can I convert it into Delphi? I tried several Urlencoders, but none of them returned the correct result. I’m trying this way: for i := 1 to length(s) do…
-
14
votes2
answers2001
viewsDoes Delphi own a garbage collector?
Does Delphi have an automatic garbage collector? How does it work. If not, what tools can do this?
delphi memory memory-management garbage-collector object-pascalasked 9 years, 8 months ago Giovani 2,875 -
13
votes3
answers4221
viewsTake only the values before the character "=" using regular expression?
I have a file containing the following contents: Maringa=123123 Marialva=789789 Mandaguacu=123456 Cidadex=A341a2 How do I pick up only the characters before the =, using regular expression? I tried…
-
13
votes3
answers1792
viewsHow to create a solid mask from a semi-transparent Bitmap?
I want to create the image on the right from the one on the left. And I have the following structure: var Image, Mask : TBitmap; begin Mask := TBitmap.Create; Image := TBitmap.Create;…
-
12
votes1
answer409
viewsIs it possible to integrate SVN with my task control tool?
I have a development environment with an SVN server running with Visualsvn and terminals with Tortoisesvn. In this same environment I have a task control system, done in Delphi, in which the tasks…
-
12
votes2
answers4768
viewsHow to get MD5 from a file in Delphi?
How to get the MD5 of a file in Delphi?
-
12
votes3
answers1195
viewsPHP + Delphi(Pascal), issue real-time warnings
I would like to design a small, simple system encoded in the Pascal language (IDE Delphi), to receive notifications (such as a warning that an event has occurred), upon receiving the warning play…
-
11
votes1
answer4766
viewsWhat’s the difference in Refresh, Update, Repaint, Invalidate and Application.Processmessages methods?
What is the difference between the methods: Refresh, tcontrol; Update, tcontrol; Repaint, also deTControl; and, Invalidate, also of Tcontrol; Beyond the Application.Processmessages?…
delphiasked 10 years, 1 month ago user8052 -
11
votes3
answers3031
viewsWhat better way to create an app that works offline and automatically encrypt data with a server?
I’m deepening into the world Mobile, where I had the first challenge, which is to create a App Android basic registration, name, age, etc. The tricky (at least for me) is that I have to update this…
-
11
votes1
answer147
viewsMake unhook after hookado
To make a hook I know, I do it as follows (Fictitious variables): MSGBOX:=GetProcAddress(GetModuleHandle('kernel32.dll'),'MessageBox');…
-
11
votes2
answers8954
viewsCalculate distance between two points by latitude and longitude
I need to calculate the distance in kilometer(Km) between two points through their latitude and longitude. I have not found an effective way to do. The latitudes and longitudes I have are formatted…
-
10
votes2
answers19752
viewsAscending and decreasing ordination in the Clientdataset
I have to order the clientdataset 3 fields at the same time: 1 - Assets(0 or 1) 2 - date(dd/mm/yyyy) 3 - name The problem is that I need to make different ordinations for each of them, the first…
-
10
votes3
answers9879
viewsHow to free all memory allocated by an object - Delphi
What is the best way to free all memory allocated by creating an object for S.O. Let’s not consider: Objeto.Free; Objeto := Nil; Sysutils.FreeAndNil(Objeto); There would be more ways to free the…
-
10
votes2
answers1898
viewsWhat is the difference between Tsqldataset, Tsqlquery, Tsqltable and Tsqlsimpledataset components?
In Delphi, following the line of components TTable and TQuery in the component palette BDE we also have similar components in the palette dbExpress which are the TSQLQuery and the TSQLTable, and we…
delphiasked 10 years, 7 months ago user3628 -
10
votes1
answer333
viewsDelphi estate
I have a component that has the function of connecting to a specific hardware. It connects through the network or serial port. Something like the code below: TConexao = (conRede, conSerial);…
-
9
votes4
answers5887
viewsIs it possible to clone objects in Delphi?
It is possible to clone objects in Delphi at runtime? For example, there is a Data Module with a zTable. If I use that zTable on two screens at the same time, with different filters, the second…
delphiasked 10 years, 9 months ago Thiago Thaison 1,938 -
9
votes2
answers5356
viewsUsing methods from a DLL
I am in need of using methods from a DLL that was developed by third party. I only have the file ". DLL". DLL documentation is scarce... there is an example of the method execution I need in VB…
-
9
votes3
answers1558
viewsLast folder of a directory
How do I get the last folder from a directory. Ex: C:\Program Files\Skype The last folder would be Skype.
-
9
votes1
answer4061
viewsWebservice Delphi Soap with authentication
I’m using Delphi to read a web service from an insurance company. It happens to come in XML format in SOAP. I import the WSDL I can get the methods. But to connect to the Web Service I have to send…
-
8
votes1
answer1524
viewsHow to change mouse cursor icon when passing over link?
Information: I have a table with the employee data. There is a column of this table, where the emails are contained, they have a direct link on Outlook. The component I’m using in my table is the…
-
8
votes6
answers7569
viewsUse of global variables and class variables in Delphi
I have some questions regarding the use of global variables and class variables using class var at Delphi. Declaring class variables with class var. unit Unit1; interface type TClass = class public…
-
8
votes1
answer7789
viewsHow to sign documents with digital certificate?
I would like to know how to sign documents with digital certificate using Delphi or Lazarus. If someone knows of some component, free preference, or some function that I can use would help a lot.…
-
8
votes3
answers6333
views -
8
votes3
answers4774
viewsHow to improve file recording speed for a Clientdataset?
I’m integrating a system with a bank file, and I’m having a problem with the process. I receive from the credit card operator a plain text file with approximately 1300Kb and about 5,500 lines. I’m…
-
8
votes2
answers483
viewsAVG accuses Windows Service Application infection if Windows Firewall addition command is present
I have an app that’s a Windows Service (Windows service) and because of facilities I am seeking to add a method to add it to Firewall of Windows automatically. Thus: procedure…
-
8
votes1
answer3212
viewsDelphi, Tthread.Que. What is it? When should it be used?
I was looking at this method that makes use of thread: procedure TFormClient.QueueLogMsg(const s: string); begin TThread.Queue(nil, procedure begin LogMsg(s) end ); end; What is this method…
-
8
votes1
answer981
viewsWhat is the difference between the Height and Clientheight properties of a Tform?
In Delphi a form has 2 properties to define the height of the form: Height and Clientheight. However, what is the difference between the properties Height and Clientheight of a Tform?…
-
8
votes1
answer740
viewsHow popular is a Grid with a list of users using Livebindings?
How to popular a Grid with a list of users using Livebindings? Having created a type: TPessoa = class private FId: integer; FNome: string; FDataNascimento: TDate; public property Id: integer read…
-
8
votes3
answers3422
viewsDifference between Getter Setter and Property in Delphi
There are some ways to encapsulate the attributes, among them, the one that I found most interesting was the one that uses the methods Getter and Setters to access the attributes (similar to what is…
-
8
votes6
answers1481
viewsLog system losing data, how to use Threads?
Currently I have a medium level system where I need to record detailed log of everything that happens in the system, the Company that is divided into Departments does audit of everything that…
-
8
votes1
answer461
viewsIs it possible to work with shp files in Delphi?
I would like to assemble an application that would have the function of a GIS (QGIS for example), that instead of developing a plugin that depends on it from the software to work, generate in Delphi…
delphiasked 8 years, 11 months ago Guilherme Lima 3,129 -
8
votes4
answers835
viewsAssembling updates at runtime
When riding SELECTS at runtime we always have the problem of knowing what may or may not be coming depending on the choices made by the user. When mounting the clause WHERE we come across the…
-
8
votes1
answer583
viewsUse "Fieldbyname" or the associated variable?
When I have a ClientDataset, one MemoryTable or a Query, what’s the difference if I take the value of a field using FieldByName() or the variable associated with the field? In the example below, I…
-
7
votes1
answer7707
viewsVersion configuration options in Debug and Release mode in Delphi
In projects in Delphi, we have the options Debug and Release in Build Configurations. I know the way Debug is used to debug the application and generates a larger executable by adding reference…
-
7
votes1
answer1564
viewsHow to browse a Tobjectlist property via Rtti?
my class has a Tobjectlist property: TBaseModelo = class(TInterfacedPersistent) public property ListaCamposValidacao: TObjectList<TCampoValidacao> read FListaCamposValidacao write…
-
7
votes1
answer664
viewsSOAP communication error. Lack of XML tag ending character
It took me a while to implement communication with Webservices SOAP in legacy applications written in Delphi 6. The Webservices I needed to communicate with these systems were written in Delphi…
-
7
votes3
answers1222
viewsOpen Form2 side by side with Form1 simultaneously and close or minimize both simultaneously
I need to open 2 forms simultaneously next to each other and then when I close or minimize any of them, the 2 be closed/minimized simultaneously. I looked for some idea on several sites and all I…
-
7
votes1
answer396
viewsDelphi Error or Bug in Procedure Creation
In the creation of Procedure automatics, double click on the component, Delphi XE8 and Delphi-10 is having a strange reaction he mixes the new Procedure with one of the existing Procedure, making…
-
7
votes1
answer1916
viewsHow does Firemonkey(Delphi) compile for Android?
I did some research but did not get good results, the project folder looks like a common Delphi or C project++! VCL - Delphi FMX - Firemonkey Observe: With the exception of the folder Android, where…
-
7
votes1
answer224
viewsButtons with different appearance at design and runtime
Has anyone ever had the above problem? At development time the button design is normal. However, after compiling and running the application, they look like buttons from the time of Windows98.…
-
7
votes1
answer1962
viewsCreate a global variable in Delphi
I need to execute the following code, but the form in question is not always Uniform1. So I’m thinking of storing the name of form into a variable and replace the Uniform1 for her sake. Instead of…
delphiasked 7 years, 2 months ago user75204 -
6
votes2
answers3255
viewsHow to perform object persistence in Delphi database?
I work with Delphi, but always in a procedural way and using Data-Aware components. I recently started reading some things about working with POO at Delphi, and did some fairly basic examples, my…
-
6
votes2
answers2883
views -
6
votes2
answers1316
viewsAuto Build Tool for Delphi
There are applications for automatic build, such as FinalBuilder, and may it be Free or Open-Source? Preferably that supports old and new versions of Delphi. What would be these?…
-
6
votes1
answer4172
viewsPaint Dbgrid lines by selecting them
I’m painting the lines of a dbgrid, in the Delphi-xe3, but my condition to paint the selected line is not working properly. When selecting the row (set the focus) only the first column is being…