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
9
votes
2 answers

How to properly configure a cross-platform Delphi XE2 project?

Right now I have 2 platforms (Mac and Win32) and 2 configs (Debug ans Release). Whole thing is under SVN. Here is layout for build output: .\App\$(Platform)\$(Config) The code is split into few folders and located…
Kromster
  • 7,181
  • 7
  • 63
  • 111
9
votes
3 answers

How can I call a 32-bit DLL from 64-bit code?

I have some 32-bit DLLs that don't have matched 64-bit DLLs. How can I invoke these DLLs from a 64-bit application written in Delphi XE2?
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
9
votes
3 answers

delphi XE2 can't compile any project on my computer because of environment variable (HP Laptops)

I have a HP laptop and I have delphi xe2 installed on the hp laptop, last 5 months ago I have no problem working with the delphi but now I have this error message. [DCC Error] E1026 File not found: 'FMX.Filter.res' [DCC Error] E1026 File not found:…
relativ
  • 665
  • 1
  • 7
  • 18
9
votes
1 answer

When to Free a Thread manually

If I create a (suspended) thread from the main thread as such: with TMyThread.Create(True) do begin OnTerminate := ThreadTerminated; FreeOnTerminate := False; Start; end; How do I go about freeing that instance once it's…
Jason
  • 2,572
  • 3
  • 34
  • 41
9
votes
3 answers

Porting Delphi code to 64 bit - Why no compiler warnings?

We have a large Delphi XE codebase we want to port to 64 bit. I own a Delphi XE2 licence and I cannot find any warning nor hint that can help me to detect valid 32 bit constructions that can now lead to data loss under a 64 bit platform. For…
Adrien Reboisson
  • 631
  • 6
  • 15
9
votes
4 answers

Firemonkey to iPhone

Here I have my Windows laptop with Delphi XE2 and Firemonkey. I've written a little Firemokey hello world app. In my hand I have my new iPhone 4S that I just brought home. What are the steps to get my Firemonkey app onto my iPhone?
David Dubois
  • 3,842
  • 3
  • 18
  • 36
9
votes
1 answer

When did WPARAM change from being signed to unsigned?

In Delphi 6 WPARAM is declared as being signed: WPARAM = Longint; In Delphi 2010 WPARAM is declared as being signed: WPARAM = INT_PTR; But in XE2 it is declared as being unsigned: WPARAM = UINT_PTR; The official Windows definition is: typedef…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
9
votes
1 answer

Debug Multiple Apps at once in Delphi XE2

Is it possible to debug multiple applications, on one machine, in Delphi XE2 at the same time? I have two (actually, three, but the middle one works fine) that send messages to each other. I would like to be able to debug both programs at the same…
anon
9
votes
3 answers

How to add menu items separators which work as expected on OSX?

On Windows platform, with the VCL, when we want to add a separator in a menu, we add a TMenuItem with a Caption := '-'; With FireMonkey, we add a TMenuItem with a Text := '-'; It works as expected on Windows platform, the item with the Text='-' is…
Whiler
  • 7,998
  • 4
  • 32
  • 56
9
votes
3 answers

Why does my Firemonkey app open a terminal window on OSX but not on Win32?

I created a simple testbed app in Delphi XE2, and compiled both a Win32 and OSX version of the application. I zipped up the OSX version, along with a copy of the libcgunwind dylib runtime file and copied this files to a Mac i have access to. When I…
Alan
  • 91
  • 2
9
votes
4 answers

Delphi XE2: Fail using dcc32.exe to compile a simple program

After install Delphi XE2, I try command line compiler dcc32.exe to compile a simple program: program test; uses SysUtils; begin end. The command line compiler show me error: c:> dcc32.exe test.dpr Embarcadero Delphi for Win32 compiler…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
9
votes
3 answers

How to access iOS accelerometer in Delphi XE2?

How do I access the accelerometer in iOS using Delphi XE2? I tried looking through the IDE but did not find a component.
Johan
  • 74,508
  • 24
  • 191
  • 319
9
votes
2 answers

How to handle a situation that requires to release a lock during a blocking call?

I have some "FreeOnTerminate" worker threads which add their handles on a TThreadList when they start executing and remove from the same when their execution ends. They also check on a global event object that would notify them to cancel their work.…
Sertac Akyuz
  • 54,131
  • 4
  • 102
  • 169
9
votes
1 answer

own namespace for nested enums in Delphi

Is there a way to put nested enumerations in Delphi into an own naming space? This code produces an E2004: Identifier redeclared, as both enumerations contain "unknown". TMyType1 = class public type TMyType1Enum = (unknown, val1, val2); public …
Chris
  • 1,508
  • 1
  • 11
  • 30
9
votes
1 answer

What project options to use for open source Delphi packages?

I've written some Delphi code I would like to share on GitHub. All code is contained in runtime and designtime packages as required. There are many "Project Options" to set for each project. (Output directories, search paths, compilation options,…
Shannon Matthews
  • 9,649
  • 7
  • 44
  • 75