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
12
votes
3 answers

Add a png image to a imagelist in runtime using Delphi XE

I need add in runtime a png image to a TImageList. I've looked at the functions implemented by the TCustomImageList but they only allow adding bitmaps, icons or images from another imagelist E.g.: function Add(Image, Mask: TBitmap):…
Salvador
  • 16,132
  • 33
  • 143
  • 245
12
votes
1 answer

How to pass multiple file extensions to TDirectory.GetFiles?

TDirectory.GetFiles has a parameter called SearchPattern. Embarcadero's documentation says The mask used when matching file names (for example, "*.exe" matches all the executable files). However, I want to pass multiple file types. I get those…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
12
votes
2 answers

Check if character is letter in Delphi (Unicode)

Are there pre-defined charsets in Delphi, to check if a character is a letter? In Cocoa I use something like if ([[NSCharacterSet whitespaceCharacterSet] characterIsMember:character]) I know I can do in Delphi if c in ['A'..'Z'] then but will…
Miguel E
  • 1,316
  • 2
  • 17
  • 39
11
votes
2 answers

Delphi XE: class constructor doesn't get called in a class using generics

Consider the following example (I am using Delphi XE): program Test; {$APPTYPE CONSOLE} type TTestClass = class private class constructor CreateClass(); public constructor Create(); end; class constructor…
Schafsmann
  • 113
  • 5
11
votes
2 answers

How do I check if my Delphi console app is redirected to a file or pipe?

I have a console app that must disable or enable some operations when output is redirected (externally) to a file or pipe (myapp.exe > Foo.bar) How I can check if my Delphi console app is redirected to a file or pipe?
Salvador
  • 16,132
  • 33
  • 143
  • 245
11
votes
1 answer

TIdHTTP - session has expired message under Delphi XE

I am trying to port my code from Delphi 2007 to Delphi XE (no Update 1 yet). The problem which I have stumbled on is that under Delphi XE I am getting different response from server after sending second GET message. The message in formated HTML says…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
11
votes
3 answers

When is a Delphi application too big for a single EXE?

If I compile my entire Delphi application to a single exe, that file will grow to 5MB, 10MB, maybe more. When is that too big? What are the issues with this? This is a commercial application, currently on Delphi XE. I'm aware of the option to Build…
Patrick Moloney
  • 642
  • 5
  • 14
11
votes
1 answer

Can I convert a msxml.IXMLDOMNode to XmlIntf.IXMLNode in Delphi?

I have read som xml into an msxml.IXMLDOMDocument object. However, there is a utility method in an API that I am using, that I would like to call, but it takes an XmlIntf.IXMLNode as an argument. Is there a simple way to convert an IXMLDOMNode…
Mathias Falkenberg
  • 1,110
  • 1
  • 11
  • 25
11
votes
1 answer

How to catch and open files dragged and dropped on an application icon?

How to open a document that was dragged and dropped on the application icon?
Srdjan Vukmirica
  • 743
  • 2
  • 8
  • 22
11
votes
9 answers

Waiting for multiples threads using WaitForMultipleObjects

I'm using the WaitForMultipleObjects function to wait for the finalization of several threads, but I'm doing something wrong because the result is not the expected see this sample code type TForm1 = class(TForm) Memo1: TMemo; Button1:…
Salvador
  • 16,132
  • 33
  • 143
  • 245
11
votes
5 answers

I cannot disable a (ghost) breakpoint

I have an IDE break point (delphi-xe) that keeps reappearing every time I compile and run the program. How do I get rid of it. Where does Delphi keep the information about breakpoints? Updates: 1. The break point is not listed in 'Breakpoints'…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
11
votes
3 answers

I get 'Variable x inaccessible here due to optimization'

I get 'Variable ForAllUsers inaccessible here due to optimization' even if the build configuration is set to 'Debug' and the Optimization is False. So, I cannot debug my program. Why do I get this? Which build is ran when I press the Run button? How…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
11
votes
6 answers

Delphi XE shows at least 200 errors but the program compiles just fine

My brand new Delphi XE shows hundreds of errors in 'Structure' panel. It shows errors like 'Undeclared FileExists at line 130' or 'Undeclared Create at line 242'. Even if it shows those errors, the program compiles just fine. I also see that code…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
11
votes
2 answers

delphi XE multi-unit namespace question

I am reading RAD Studio Documentaion in Delphi XE. here a some texts. [ Delphi Reference -> Delphi Language Guide -> Programs and Units -> Using Namespaces -> Searching Namespaces -> Multi-unit Namespaces ] Multi-unit Namespaces Multiple units…
user754458
  • 193
  • 7
11
votes
7 answers

Using Generic containers in Delphi XE - always?

Generic containers can be a time saver when having a item, and a strongly typed list of those items. It saves the repetitive coding of creating a new class with perhaps a TList internal variable, and typed Add/Delete type methods, among other…
Darian Miller
  • 7,808
  • 3
  • 43
  • 62