Questions tagged [delphi-xe2]

Delphi XE2 is a specific version of Delphi. Delphi XE2 was released on September 1, 2011 and is available as a standalone product or as part of RAD Studio XE2.

Delphi XE2 is a specific version of released on September 1, 2011.

Notable new features of Delphi XE2 are:

  • Support for 64 bit applications (on Windows only);
  • Inclusion of a new framework called that allows for cross platform development;
  • Cross platform development for Mac OS X and iOS(*) (in addition to Windows);
  • Live bindings, a new data binding concept for VCL and FireMonkey that supersedes data-awareness of controls.

*iOS projects require an extra development step using Xcode and the Free Pascal compiler on a Mac, but do deliver native iOS code.

Delphi XE2 was preceded by .

Always use the tag alongside this tag.

2598 questions
14
votes
2 answers

Is there a bug in the Delphi list view control when using custom drawing?

QC#101189 I'm trying to custom draw a progress bar in a Delphi TListView as suggested by NGLN's answer to another SO question. This works fine, apart from the interaction with hot tracking when drawn using the new explorer theme introduced in…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
14
votes
6 answers

Delphi XE2: Is there a predefined conditional to identify VCL and FireMonkey?

In Delphi XE2, we have use {$ifdef Win32} {$ifdef Win64} to identify which platform we are in. Is there any predefined conditional that may identify VCL and FMX?
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
14
votes
2 answers

Delphi 2007 and XE2: Using NativeInt

Since Delphi XE2, NativeInt has new meaning. At 32 bits runtime, NativeInt is 32 bits integer. At 64 bits runtime, NativeInt is 64 bits integer. I have some source files that use third party DLL (both 32 and 64 bits). These DLL use 32 and 64 bits…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
14
votes
2 answers

Can 64 bit Delphi targets statically link to compiled C object files?

My 32 bit Delphi 2010 application links to a number of C object files using the $LINK compiler directive. Can I do this in Delphi XE2 when targetting 64 bit? I am currently compiling using bcc32 version 5.5, but I don't mind which compiler I use if…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
14
votes
3 answers

Delphi XE2 : Off by 7-20 lines in debugger and compiler error line numbers also off by the same amount

I am having a problem with a large Delphi codebase where I work where as a side effect of porting from Delphi 2007 to XE2, we now encounter the following strange, related issues: You can not set breakpoints or single step through code even in the…
Warren P
  • 65,725
  • 40
  • 181
  • 316
14
votes
1 answer

How I make RTTI-call with safecall function method of interface?

I have this test program https://gist.github.com/real-mielofon/5002732 RttiValue := RttiMethod.Invoke(RttiInstance, [10]); and simple unit with interface: unit Unit163; interface type {$M+} ISafeIntf = interface function TestMethod(aI:…
Mielofon
  • 428
  • 3
  • 14
14
votes
3 answers

Randomize StringList

How can I randomize the Strings in the StringList similarly how this online tool works. If anyone is familiar with it, check this: http://textmechanic.co/Randomize-List.html
Santos Oliveira
  • 497
  • 1
  • 8
  • 18
14
votes
1 answer

How can I get Delphi XE2 to talk to Google Calendar APIs over SSL?

It's time for this question again, but this time with Delphi XE2. I am using the Indy version 10.5.8.0 that ships with XE2, and I have tried four different versions of the SSL dlls. I have tried 1.0.x latest, and about 3 different 0.9.8 versions…
Warren P
  • 65,725
  • 40
  • 181
  • 316
13
votes
2 answers

Disabling TButton issue on a VCL styled form

When I try to disable a Button on a styled VCL from using the follwing line of code TButton(Sender).enabled:= False; I get the this result (Button disabled at runtime) instead of this!! (Button disabled at design time) It's really confusing to…
Raul
  • 656
  • 5
  • 17
13
votes
2 answers

Embed Web Browser in MacOS Application using Delphi XE2

How can I embed a WebView (Embedded Web browser) inside a Delphi MacOS application? It does not appear the webkit headers are included in XE2.
Phillip Roux
  • 1,009
  • 7
  • 12
13
votes
8 answers

VCL Styles - client size of form reduced

I don't know if it's a bug... But when I set any other VCL style except for "Windows", the window width is reduced. - Is there any solution for this? UPDATE I submitted this to QC: http://qc.embarcadero.com/wc/qcmain.aspx?d=103697 Hope they'll…
djsoft
  • 1,051
  • 8
  • 19
13
votes
1 answer

What should I do about an internal error when I declare a generic "array of T"?

This unit fails to compile in XE2 Update 3 with "[DCC Fatal Error] Test.pas(22): F2084 Internal Error: URW1147" unit Test; interface type TSorter = procedure(var Values: array of T); TTest = class public procedure Sort(const…
BofA
  • 823
  • 7
  • 16
13
votes
6 answers

Can a record be used as a property of an object?

I'd like to make a record as an object's property. The problem is that when I change one of the fields of this record, the object isn't aware of the change. type TMyRecord = record SomeField: Integer; end; TMyObject = class(TObject) …
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
13
votes
1 answer

DELPHI: Generics and polymorphism

This has been asked several different ways already - but I haven't found my answer yet. Can someone clarify a few things for me please. Using : Delphi XE2 I have quite a big BaseObject that I use for almost everything. Along with it I have a Generic…
Bimmer_R
  • 588
  • 9
  • 18
13
votes
3 answers

Can I use the Delphi XE2 Subversion integration with Subversion 1.7

I have just migrated revision control systems to Subversion. We have chosen to use the latest version of Subversion, 1.7. When I switch to the history view in the Delphi editor an error occurs: The path 'path/to/my/project' appears to be part of a…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490