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
19
votes
4 answers

DCC Hint: H2161 Warning: Duplicate resource: Type 24 (user-defined), ID 1; File resource ... kept; file ...\WindowsXP.res resource discarded

Get the following error while linking my project in Delphi XE2. Recreating of .dproj file doesn't help. [DCC Hint] H2161 Warning: Duplicate resource: Type 24 (user-defined), ID 1; File resource .res kept; file c:\program…
Dmitry
  • 14,306
  • 23
  • 105
  • 189
19
votes
1 answer

Example for using Generics.Collections.TObjectDictionary

The Delphi XE2 online help (as well as the Embarcadero DocWiki) is very thin on the documentation of TObjectDictionary (or I am too stupid to find it). As far as I understand it, it can be used to store object instances that can be accessed via…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
19
votes
1 answer

What might I have broken in Delphi XE2?

I was fiddling with a batch file to call MSBuild to build my project. Something went wrong because now when I go into XE2 and choose File | New | VCL Forms Application and click 'Build' (or Run) I get the following immediate error: Checking project…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
19
votes
4 answers

Firemonkey version of VirtualTreeView

Does anyone happen to know if there is a Firemonkey version of the popular VirtualTreeView in preparation? Also, has anybody collected some experiences with porting custom controls to Firemonkey and can estimate how much work it would be to port the…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
19
votes
2 answers

How do I parse a web URL?

I need to be able to break a URL down into different segments. Take this path for example: http://login:password@somehost.somedomain.com:8080/some_path/something_else.html?param1=val¶m2=val#nose \__/ \___/ \______/ \_____________________/…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
18
votes
1 answer

How to mark as deprecated a single enum value in Delphi

I wish to have the following: TEnumType = ( etValue1 = 1, etValue2 = 2 deprecated, etValue3 = 3); It returns: [DCC Error] unt_CollectionImportType.pas(19): E2029 ',' or ')' expected but identifier 'deprecated' found. Is there a way to…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
18
votes
5 answers

Can I add conditional defines in the msbuild command line?

I have the following sample code: program boohoo; {$APPTYPE CONSOLE} {$IFDEF boo} {$MESSAGE warn 'boo'} {$ENDIF} {$IFDEF hoo} {$MESSAGE warn 'hoo'} {$ENDIF} begin end. In the project options the conditional boo is defined. I would like to be…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
18
votes
3 answers

Observers property in TComponent

Hi Delphi XE2 TComponent has a new "Observers" property. Unfortunately the help entries for this are empty. Does anybody know what this new property is good for and how to use it? Edit: Well i know that it is related to LiveBindings, but I would…
iamjoosy
  • 3,299
  • 20
  • 30
18
votes
5 answers

What is the best way to program a delay in Delphi?

A Delphi application that I'm working on must delay for one, or sometimes two, second(s). I want to program this delay using the best practices. In reading entries about Delphi's Sleep() method on stackoverflow, I found these two comments: I live…
Mike Jablonski
  • 1,703
  • 6
  • 27
  • 41
18
votes
2 answers

Delphi XE2 Data Module expects only database components?

In prior versions of Delphi, I have used the data module (TDataModule) as a place to keep non-visual components to avoid cluttering up the main form. In Delphi XE2, when I create a new data module, it only allows me to place database related…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
17
votes
3 answers

Delphi VCL styles tutorial - how to change the style at runtime

Is there a good VCL Styles tutorial where we see how to dynamically (in run time) load/change the style ? This should work with Delphi XE2 and up, since XE2 is the first version with VCL Styles.
philnext
  • 3,242
  • 5
  • 39
  • 62
17
votes
1 answer

Can I easily compile my existing Delphi application for Mac OS X with Delphi XE2 (v16)?

I have an existing Delphi 2009 application. I saw with the new XE2 release that we can now build our Delphi application to Windows 32/64 and now Mac OS X! Thumbs up to 64 bits and for Mac OS X compilation... How good is the Mac OS X compiler? What…
AlexV
  • 22,658
  • 18
  • 85
  • 122
17
votes
13 answers

Delphi XE2 Firemonkey sample app not running on a MAC

I am trying to run a sample Firemonkey app on a Mac, but I am getting this message in the mac: dyld: Library not loaded: @rpath/libcgunwind.1.0.dylib Referenced from:…
Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121
17
votes
1 answer

Why are the Delphi zlib and zip libraries so slow under 64 bit?

Whilst benchmarking a real-world application I came across a surprising performance characteristic relating to the zlib and zip libraries that ship with Delphi. My real-world application exports .xlsx files. This file format is a collection of XML…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
17
votes
5 answers

How to remove unused units from all source files on Delphi XE2?

How to automatically remove unused units from uses section on all source files of the project on Delphi XE2? P.S. IDE will work much faster after that.
Dmitry
  • 14,306
  • 23
  • 105
  • 189