Why the following code:Would produce the following compilation error under Delphi XE4 (both win32 and win64):
When exceptions like EZeroDivide, EOverflow, EMathError... are raised, they appear with a default message.
Delphi function BoolToStr converts boolean value to a string.The result is either true or false, or 'numeric', '-1' and '0' respectively. Why -1 and not 1?
I'm following along in Pawel Glowacki's Expert Delphi book. On page 98 he has the following onClick event handler:
It is said that often (but not always) when you get an AV in a memory location close to zero (like $89) you have an uninitialized pointer. But I have seen this also in Delphi books... Hm... or they have been all written by the same author(s)???
In the delphi source code we have :but I don't understand, they mix Atomic operation (AtomicCmpExchange(Pointer(FBase64Encoding), Pointer(LEncoding), nil) with non atomic operation like if FBase64Encoding = nil then and Result := FBase64Encoding;
My Delphi 10.2.3 app was submitted to Google Play with the fix from this answer: Delphi Android app API level 26? Google Play reported that this build supports over 400 devices.
I have a TPanel with 2 events:When I click on the panel (MouseDown event) the cursor does not change to crSizeAll. What am I doing wrong and how can I resolve this?
I created in Lazarus a new component based on TPaintBox. Now in Object Inspector I have all Properties and Events which belong to this base component (TPaintBox).
I have a project that I once created in Delphi Seattle and I would now like to move to Delphi Rio. I read the directory structure on an external SD-Card using findfirst/findnext