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.

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 (rapid application development) Studio XE.

Delphi XE code name is Fulcrum, compiler version 22, directive symbol VER220.

Speculation about Delphi XE prior to its release often referred to this release as Delphi 2011.

Delphi XE was preceded by Delphi 2010 and succeeded by Delphi-XE2

1495 questions
11
votes
3 answers

Put a TCheckBox inside a TStringGrid in Delphi

I want to put a TCheckBox inside a TStringGrid in Delphi in every cell of certain column. I'm using Delphi XE.
alexzm1
  • 563
  • 2
  • 7
  • 14
11
votes
2 answers

How to use Delphi RTTI to get and set Record Values

I'm attempting to use the enhanced RTTI features in Delphi XE or later, to read and write objects to XML. So far I've been successful with integers, floats, strings, enumerated types, sets and classes but can't output or read records correctly. The…
Mitch
  • 335
  • 1
  • 3
  • 10
11
votes
2 answers

Delphi XE build events.. globally?

Starting to make a lot of use out of the build events system in XE, but one thing I noticed is that I'm unable to set up default build events in the default project settings. Is there any sort of workaround/hack/whatever that would make this…
Jen Smith
  • 261
  • 1
  • 9
11
votes
1 answer

get the full path from a PID using delphi

I need to get the full path from a PID. I've checked this question C++ Windows - How to get process path from its PID and I wrote the following code: function GetFullPathFromPID(PID: DWORD): string; var hProcess: THandle; ModName :…
Salvador
  • 16,132
  • 33
  • 143
  • 245
11
votes
3 answers

Dealing with overloaded functions that have ambiguous parameters

Take this small example class (not my real code, but it exposes the problem): Convert = class(TObject) public class function ToString(value: Double): String; overload; class function ToString(value: TDateTime): String; overload; end; It…
whosrdaddy
  • 11,720
  • 4
  • 50
  • 99
11
votes
1 answer

Why don't I get an access violation when I call methods on an uninitialized function result?

One of my coworkers show me a code written in Delphi-XE XE Version 15.0.3953.35171, which I believe it should raise an access violation. The code is bellow: unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics,…
RBA
  • 12,337
  • 16
  • 79
  • 126
11
votes
1 answer

How can I make a form that is not disabled when another form is shown modally?

I have a utility dialog (non-modal and stay-on-top) that should be accessible at all times when using the application (think of a dialog that can be used to take notes while working with the application) even if a modal dialog is displayed. The rest…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
11
votes
2 answers

Compiler ignores missing parenthesis of Exit command

Why does the Delphi compiler ignore this missing parenthesis? function Test: Boolean; begin Exit(True; // <-- eek! it compiles... end; I found some of my code looking like this and first thought that Delphi ignores my unit - but it just…
Heinrich Ulbricht
  • 10,064
  • 4
  • 54
  • 85
10
votes
2 answers

Fast copy of TList ?

Is there a fast way to copy a generic TList? Copy.Capacity := List.Count; for Item in List do Copy.Add (Item); is very slow. There seems to be no way to use CopyMemory since I can't get the memory adress of the internal array (which is obvious…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
10
votes
1 answer

Why same code executes faster in the thread?

Consider this very simple piece of code: uses Diagnostics; const ITER_COUNT = 100000000; procedure TForm1.btn2Click(Sender: TObject); var val: Double; i: Integer; begin sw := TStopwatch.StartNew; val := 1; for i := 0 to ITER_COUNT - 1…
Linas
  • 5,485
  • 1
  • 25
  • 35
10
votes
1 answer

How I can add a custom Color to an TColorBox using the OnGetColors event?

I'm using the OnGetColors event of the TColorBox component, but I can't figure out how add new colors using the Items property of the item parameter of the Event. procedure (Sender: TCustomColorBox; Items: TStrings) of object; How I must add new…
Salvador
  • 16,132
  • 33
  • 143
  • 245
10
votes
3 answers

How i can determine if an abstract method is implemented?

I'm using a very large delphi third party library without source code, this library has several classes with abstract methods. I need to determine when an abtract method is implemented by a Descendant class in runtime to avoid the EAbstractError:…
Salvador
  • 16,132
  • 33
  • 143
  • 245
10
votes
2 answers

Delphi compile-time integer conversion warnings?

In Delphi XE or 2006, is there any way to detect at compile time that implicit conversions between integer types may lose data? I realize it's possible to detect this with runtime checking. I would want it to flag the following example even if the…
TrueWill
  • 25,132
  • 10
  • 101
  • 150
10
votes
2 answers

WinHttp Delphi wrapper

Please advise if there is a WinHTTP wrapper in Delphi XE In order of preference: a Delphi out of the box unit a third party open source pas file with ported entry routines a xxx_TLB.pas wrapper Solution: Since comments do not allow formatted code…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
10
votes
3 answers

Theres a UIntToStr in delphi to let you display UINT64 values, but where is StrToUInt to allow user to input 64 bit unsigned values?

I want to convert a large 64 bit value from decimal or hex string to 64 bit UINT64 data type. There is a UIntToStr to help converting the UINT64 to string, but no way to convert a 64 bit integer to a unsigned value, as a string. That means integer…
Warren P
  • 65,725
  • 40
  • 181
  • 316