As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [delphi-xe]

Delphi XE is a specific version of Delphi. Delphi XE was released in August 2010, and is available as a standalone product or as part of RAD Studio XE.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

How stop (cancel) a download using TIdHTTP and keep connection

There is a good answer on half of my question: How stop (cancel) a download using TIdHTTP But if I use Abort, then sometimes the GET request will still continue to run. If I use Disconnect() then the ...
Vadim Mescheryakov's user avatar
0 votes
0 answers
13 views

Global Hook KeyBoadr in TService

I want to write Global Hook. As an application, the code below works. But not as a service. function TrapKeyboardInput(nCode: integer; wp: wParam; lp: lParam): LResult; stdcall; // Windows Hook ...
maruda's user avatar
  • 11
0 votes
2 answers
102 views

Delphi AdoDB Connection.Execute() exception handling

I have this code try ADOconnection1.connected:=true; ADOconnection1.Execute(memo1.Lines.text); if AdoConnection1.Connected then AdoConnection1.Close; ShowMessage('Floorplan imported to DB'); ...
milenjao's user avatar
0 votes
1 answer
38 views

Delphi TNetEncoding.Base64 works but data are cutted

I have this code, in which I want to convert a file to Base64 format using TNetEncoding.Base64. It works, but it cuts my data to a few lines. My question is why? Delphi's String can contains approx ...
milenjao's user avatar
1 vote
1 answer
135 views

How to insert in MongoDB

I'm doing CRUD in MongoDB. I tried this example but I'm its not working. I'm getting access violation error then stream read error. Here is my code: var fdCon : TFDConnection; fdMongQuery : ...
Ago's user avatar
  • 755
0 votes
0 answers
15 views

How to read values from nested dataset in TFDMongoQuery

I'm reading data from a MongoDB. Here is the data: [{ "_id": "100", "v": [ { "length": 1, "path": "1.txt" }, { ...
Ago's user avatar
  • 755
0 votes
0 answers
143 views

Creating Index ,PK, tables at runtime using FireDAC (no SQL script)

I am trying do same with FireDac as following SQL: CREATE TABLE [Franchises]([Franchise] TEXT(100) PRIMARY KEY ASC NOT NULL UNIQUE); CREATE UNIQUE INDEX [IFran] ON [Franchises]([Franchise] ASC); But ...
Bald's user avatar
  • 11
0 votes
1 answer
88 views

When typing at the end of the editmask, it will pass the number to the left side until it reaches the last one

Good afternoon, I'm doing a project in delphi that uses editmask. I'm using the phone mask. When clicking on edit to write the phone number, it goes to the last field on the right, so it is necessary ...
Erick Landim's user avatar
0 votes
0 answers
71 views

Android Sample Code of Light Sensor Build From Delphi XE 10.4 not working

When I run sample code "sensorInfo" from RAD Studio, I got zero in Lux Value, then I google for Light Sensor and find out another code but got same value ZERO. What should I do for this ...
NBASoCryptoOoOoOo's user avatar
1 vote
1 answer
149 views

SendMessage COPYDATASTRUCT wrong string when recive in delphi

I send the following c++ application request: string data_to_send = "Hello World"; PCSTR lpszString = data_to_send.c_str(); COPYDATASTRUCT cds; cds.dwData = 0; // can be anything cds.cbData =...
Agnius Igres's user avatar
1 vote
1 answer
119 views

Calling async methods in a c# dll from delphi

I'm writing a DLL in C# which goal is to communicate with a web platform using REST. It's going to be used in a Delphi XE program. The problem is, I don't really know how to go about exposing my DLL ...
Wardzionn's user avatar
0 votes
0 answers
59 views

Version info details displayed incorrectly in final exe [duplicate]

My requirement is to generate the version information via VersionInfo.rc file so have used the following file given below. Reference link : https://helloacm.com/how-to-store-file-information-version-...
mano's user avatar
  • 308
1 vote
3 answers
603 views

Best practice for storing many long SQL queries in Delphi

I am developing applications with Delphi XE. I have many long SQL queries and I don't want to store them in code like below, because this method reduces code readability: CONST_SQL1 = 'SELECT ... FROM ...
meto85's user avatar
  • 31
0 votes
1 answer
109 views

Delphi (XE) BPL Packages do not load: DevExpress, RemObjects

Good Day, I am in the process of trying to open a legacy software project in Delphi XE. Whenever I try to open the IDE, I get around 100 - 110 error messages, one error message per DevExpress ...
Hendrik Potgieter's user avatar
-3 votes
1 answer
2k views

Compiler error "E2003 Undeclared identifier"

In this code: uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdIOHandler, IdGlobal, ...
MrCamarium's user avatar
0 votes
1 answer
92 views

E2153 ';' not allowed before 'ELSE' [duplicate]

When I compile my schedule: procedure TForm1.FormCreate(Sender: TObject); var Speed: Double; myStringList: TStringList; b: array[0..512] of Char; Memory: tMemoryStatus; i : Integer; begin ...
MrCamarium's user avatar
0 votes
1 answer
153 views

Retrieve Year from week number

Using Embarcadero Delphi, I need to populate a table with week number and the week year. The problem is at the end of December and starting January. First case: Date "29/12/2024": is in the ...
img.simone's user avatar
-1 votes
1 answer
559 views

Incompatible types: 'string' and 'Boolean' [duplicate]

I have to check for a sound card, so I don't need quality but only one answer yes or no. I used this code: function IsSoundCardInstalled: Boolean; Begin Result := waveOutGetNumDevs > 0; End; ...
MrCamarium's user avatar
0 votes
0 answers
197 views

connect to Power Bi with delphi xe10.4.2

I want to write a program with Delphi that uses pbi reports Is there a solution? I saw similar work with other platforms but I need it done in Delphi
Fariborz Asgari's user avatar
0 votes
1 answer
109 views

Write more lines TMemo (Delphi XE)

In a TMemo I must report information on multiple lines: procedure TForm1.FormCreate(Sender: TObject); var ids: TidIpWatch; Speed: Double; begin ids := TidIpWatch.Create; Speed := GetCPUSpeed; ...
MrCamarium's user avatar
-2 votes
2 answers
414 views

Incompatible types: 'string' and 'Double'

I would like to use a Label or a Memo to view information: function GetCPUSpeed: Double; const DelayTime = 500; var TimerHi, TimerLo: DWORD; PriorityClass, Priority: Integer; begin ...
MrCamarium's user avatar
0 votes
0 answers
335 views

Add attachment to message in Slack API

How can I add a large text file (actually a HTML file) as an attachment to a channel in Slack? A working example would be great. I use SDriver - the included demo works fine to send some strings, but ...
Roland Bengtsson's user avatar
-1 votes
2 answers
278 views

Problem with the HTTPS protocol (Delphi XE)

Doing so, I should get the public IP: function TForm1.GetPublicIp: String; begin IdHttp1.Request.Host := 'https://www.mio-ip.it'; Result := IdHttp1.Get('https://www.mio-ip.it'); end; The problem ...
MrCamarium's user avatar
1 vote
1 answer
2k views

Delphi XE + Indy 10.6.2.0: TLS v1.2 hangs on IdSMTP.Connect;

When trying to connect to an SMTP server with TLS v1.2 method and port 465 used, my program hangs infinitely. I created a test mail account on mailbox.org (TLS 1.2 obligatory) and tried with the ...
Andreas Ströbel's user avatar
0 votes
2 answers
563 views

How to ...... hide columns of a CxGrid with drag and drop

How to popup a customization dialog to hide columns, like this:
Ahmed Bellil's user avatar
0 votes
0 answers
200 views

Wait until Class has done its work in Delphi

Hello StackOverflow community, I ran into a problem with one of my Delphi projects. Wrote a sip-phone class to call clients. Works fine so far but I need the program to wait until the call is done. ...
MorrisF's user avatar
  • 11
0 votes
0 answers
146 views

AQTime is not identifying my application's debug information

I am facing a strange issue with AQTime in a Delphi XE application. I am trying to run AQTime for performance improvement but due to this issue I can't do so. In Module Panel, application is marked ...
A B's user avatar
  • 1,449
1 vote
1 answer
355 views

Delphi - Create Component Sub Property

I am developing components with Delphi. I'm stuck on something and need your help. I needed a sub property when creating the property value in my component. In short, I wanted it to be like this on ...
Halil Han Badem's user avatar
1 vote
0 answers
362 views

Unsupported ELF file type 2 when linking in a seperate shared object lib with delphi in linux 64bit

In the following, Delphi XE 10.4.2 with the latest patches (as of 9th June 2021) and RHEL 8 with all updates have been used. Delphi 10.4.2 doesn't seem to be able to link against .o files so I create ...
Andrew's user avatar
  • 113
2 votes
0 answers
127 views

Automatically Pause When Visiting Youtube URL

I was tasked to capture the image on a specific time when visiting youtube. So far I haven't got any success using chromium. For example, i need to capture the image of a video exactly after 180 ...
Ago's user avatar
  • 755
1 vote
1 answer
96 views

Delphi XE: Why some items in File->New->Other->ActiveX are grayed out?

I wanted to create a new ASP.NET project using Delphi XE, but I'm facing the issue in the Title. Almost all icons in the right box are grayed out (disabled). I don't understand it, because my Delphi ...
Emilio Beretta's user avatar
1 vote
1 answer
76 views

Are generic TObjectlist operations Delete and Move typesafe for descendants?

I have TKeyframe as a class, and Keyframes: TObjectlist<TKeyframe> in a base class TTrack, but in descendants of TTrack, Keyframes contains descendants of TKeyframe with additional fields and ...
Garth Thornton's user avatar
0 votes
0 answers
122 views

How to change the camera position during design in Viewport3D?

In Delphi 10.x for arrange objects in the environment, How to change the position of the default camera or zoom it during design?
GBg's user avatar
  • 213
1 vote
1 answer
108 views

DELPHI FIREDAC Precedence between master detail relation and calculated fields

I have a TFDQuery, I'll call it FDQ_Master, containing a formula in text. The Idea would be to add a calculated (Or internal calc same result so far) field to this FDQ_Master to evaluate this formula....
Atreide's user avatar
  • 257
1 vote
2 answers
462 views

Delphi 10: What can I do about String[25] changing some char values to "?"

I have ported a Delphi 7.1 application to Delphi 10.3. I have some simple encrypting/decryption functions. And if I encrypt string values and encrypt them, everything is fine: var test, encrypted, ...
Flemming's user avatar
1 vote
0 answers
83 views

How to pass popupparent property to a DLL

I pass the popupparent property from a program to a DLL. When call two times to DLL the program raises an access violation. This is my dll code: library mydll; uses System.SysUtils, System....
marchomal's user avatar
0 votes
0 answers
357 views

Delphi using Gnostice eDocEngine , PDF toolkit create and alter PDF

I am using Delphi XE6 and using Gnostice eDocEngine to create the PDF and Gnostice PDF toolkit to edit/ alter PDF. I am able to create a PDF using eDocEngine and also able to view the created PDF ...
tanavi's user avatar
  • 1
1 vote
2 answers
147 views

Indy Query Using Delphi

I have two TIdTCPClient components (TCPClient1 and TCPClient2) that share the same OnStatus property (see below). The components are identified by their Tag property. How do I identify the calling ...
Frank's user avatar
  • 11
0 votes
1 answer
891 views

Set default folder when print to a PDF-file

I am using FastReport printdialog. I print to a PDF-file. How can I set the initial folder that is suggested when I save the PDF-file ?
Roland Bengtsson's user avatar
1 vote
1 answer
310 views

Paradox BCD field - Number is out of Range error

I'm attempting to update an old Paradox (BDE) table using an older Delphi XE6 application. One particular table has two fields; a Date field, and a BCD field. I'm unable to post a new record to the (...
Hackbrew's user avatar
  • 337
-1 votes
2 answers
2k views

TStringlist error on loadfromfile : No mapping for the Unicode character exists in the target multi-byte code page

I'm getting the exception below when trying to load a file using the TStringList.LoadFromFile method: stringlist1.loadfromfile('c:\example.txt'); No mapping for the Unicode character exists in the ...
delphirules's user avatar
  • 6,241
0 votes
1 answer
84 views

How to search and replace code in Delphi TBCEditor

I need help. I was compiling a code editor. How to search and replace code in Delphi TBCEditor.
Azamat Badalov's user avatar
1 vote
1 answer
297 views

Delphi decoded base64 to something

I am stuck a bit in decoding. I got a base64-encoded .rtf file. A little part of this looks like this: Bek\u252\''fcld\u337\''3f Which represents: Beküldő But my output data after decoding is: Bekuld? ...
Shadowsfall's user avatar
2 votes
2 answers
1k views

Delphi Devart SecureBridge POST Request

I am using the trial version of DevArt's SecureBridge product. I am trying to process POST, but somehow I could not print the request data. XML: <test> <a>test1</a> <b>test2<...
Halil Han Badem's user avatar
0 votes
1 answer
320 views

Scroll by mouse drag

For some reason, user is having problem using the vertical and horizontal scroll bars in TTreeView. They want to scroll by drag(simulate finger on touchscreen). I'm not sure where to start with this ...
Ago's user avatar
  • 755
4 votes
1 answer
11k views

Azure Pipelines multi-repo how to get Git Commit ID

For an Azure Pipeline with multi-repositories, how can you get the GIT commit id from a checked out resource repository? Is it supported? I'm using an Azure repo to store the pipeline yaml file, and ...
jan2705170's user avatar
1 vote
1 answer
170 views

EOutOfResources exception when trying to restore tray icon

I'm getting an EOutOfResources exception 'Cannot remove shell notification icon' when trying to implement code to restore the tray icon after an Explorer crash/restart. My code is based on the old ...
fullerm's user avatar
  • 396
1 vote
0 answers
297 views

Delphi RAD Studio Deployment Manager Remote Path for Appx Deployment

I'm searching for some documentation of the Delphi RAD Studio deployment manager, that describes in detail available remote path settings, if I like to include additional files, that have to be ...
Jens.F's user avatar
  • 41
0 votes
1 answer
194 views

Pascal assign variable to record field in RAD Studio XE

Can anyone comment on where the problem is here? Compiler error says: Error: Incompatible types: 'Array' and 'name' Error on line: Student.s_name:=n; Code as follows. program datafiles; Uses ...
Mike's user avatar
  • 1
2 votes
2 answers
2k views

Receiving 400 Bad request when making S3 GET request

I am trying to make an AWS version 4 authorization signed GET request to S3, and receive a bad request error 400 Code:InvalidRequest Message:Missing required header for this request: x-amz-content-...
Jon's user avatar
  • 23

1
2 3 4 5
30