210 questions
Score of 2
0 answers
136 views
Obtaining the serial number of an NVMe drive
I'm trying to retrieve the serial message of my internal drive. The IOCTL_STORAGE_QUERY_PROPERTY request does not return the actual number on NVME drives, but I haven't found any other well-documented ...
Advice
0
votes
0
replies
66
views
HTTP2 request on THTTPClient always revert back to HTTP1 request?
I've been using ThttpClient on Delphi (Rad Studio 12) and Windows 10 Home Single Language 22H2 to get data from particular web server that using http2 protocol protected by Cloudflare with failure. ...
Score of 0
2 answers
154 views
How to fix BRCC32 Error : Allocate failed
I'm using Delphi 12.
I have a RC file that I put every images of my application inside, and compile it with BRCC32.
Now I'm trying to insert also the main icon file on the RC file, like so :
MAINICON ...
Score of 3
1 answer
175 views
Draw a rectangle on the corner of the TCalendarView items
I try to draw a triangle in the corner of my TCalenderView items under certain conditions (I've simplified the code here to just highlight the odd dates).
The DrawTriangle function that I added was ...
Score of 3
2 answers
173 views
How to stop my THorse controller from executing after the middleware sends a 401 error?
I am trying to build an API in Delphi 12 CE using THorse.
I have setup middleware to handle the authorization, but it does not stop there.
My project file (simplyfied):
begin
dmMain := TdmMain....
Score of 6
0 answers
161 views
Detect dark / night mode on iOS using Delphi
With Delphi 12 I use IFMXSystemAppearanceService to detect if my device is in dark mode. It works on Android and MacOS but not on iOS. I always get light value.
function TThemeNotifier.GetSystemMode:...
Score of 2
1 answer
180 views
Can't create MSIX in Delphi 12, as build type always reverts to "windows 32-bit - Normal"
Every time I open the "deployment / provisioning" tab in the build configuration, it always reverts to a build type of "windows 32-bit - Normal", no matter how many times I change ...
Score of 0
1 answer
154 views
How to fix error on compile : "Could not compile used unit 'IdUri'"
I'm using Delphi 12. One of my applications uses the unit IdUri. When I try to compile the application (CTRL+F9), I'm getting this error:
[dcc32 Fatal Error] myunit.pas(9): F2063 Could not compile ...
Score of 4
1 answer
186 views
How to access sync prototypes, shortcut alt+ctrl+shift+p produces no synchronization method found
I upgraded from Delphi 10.2 to Delphi 12.3
In Delphi 10.2 I discovered sync prototypes feature activated by using keyboard shortcut alt+ctrl+shift+p. This is such a handy function. Change the header ...
Score of 0
1 answer
169 views
{dcc64 Fatal Error} E2225 Never-build package 'cxLibraryRS29' must be recompiled with Delphi 12 Community Edition
I have two Delphi versions installed on my computer.
One for commercial use which is Delphi 13, and one for personal projects which is Delphi 12 Community Edition.
I also have a license for DevExpress....
Score of 2
1 answer
187 views
How to disable "blow up" behavior when opening a dialog window on Windows 11?
I have a VCL app written in Delphi 12.3. It displays a dialog over a form. The dialog may be displayed as the result of a toolbar speedbutton click, or from a menu selection; if called from the ...
Score of 0
0 answers
32 views
Problem using a TRESTResponseDataSetAdapter with Boolean fields and SQLite
I am writing a Firemonkey mobile app, and as the user could be without a signal at times, I need an SQLite local database to hold some data.
I am using Delphi's Rest components to call an endpoint and ...
Score of 1
1 answer
162 views
How do I change my mouse icon when I hover over a TSkLabel component on Delphi in FireMonkey
I have a follow up question to one of my previous questions. I have switched over to using Skia4Delphi in my applications, but the properties are very different.
I was using TLabel and setting the ...
Score of 3
0 answers
249 views
Passing strings between Excel and Delphi 12
I currently have a Delphi DLL which takes in 2 parameters as PChar and another parameter that outputs as a PChar to Excel. In Excel these are all string, but whenever I run the macro in Excel, my ...
Score of -1
1 answer
143 views
What is the equivalent of `ColorToString` for FMX in Delphi?
In VCL, I could simply call the ColorToString function from System.UIConsts, but this function is VCL only because it uses TColor:
function ColorToString(Color: TColor): string;
begin
Result := ...