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

TLabel and TGroupbox Captions Flicker on Resize

So, I have an application that loads different plugins and creates a new tab on a TPageControl for each one. Each DLL has a TForm associated with it. The forms are created with their parent hWnd as the new TTabSheet. Since the TTabSheets aren't a…
ThievingSix
  • 1,044
  • 1
  • 11
  • 23
23
votes
5 answers

Create and/or Write to a file

I feel like this should be easy, but google is totally failing me at the moment. I want to open a file, or create it if it doesn't exist, and write to it. The following AssignFile(logFile, 'Test.txt'); Append(logFile); throws an error on the…
Eric G
  • 3,427
  • 5
  • 28
  • 52
23
votes
4 answers

Is TDirect2DCanvas slow or am I doing something wrong?

While looking for alternatives to replace GDI, I was trying to test Delphi's 2010 TDirect2DCanvas performance in Windows 7. I tested it by drawing a huge polyline using Direct2D and the result was absurdly slow, even with 500 times less data than…
Trinidad
  • 2,756
  • 2
  • 25
  • 43
23
votes
2 answers

Wrong code when combining anonymous and nested procedures

I've got some unexpected access violations for Delphi code that I think is correct, but seems to be miscompiled. I can reduce it to procedure Run(Proc: TProc); begin Proc; end; procedure Test; begin Run( procedure var S: PChar; …
user743382
23
votes
4 answers

Do I need TThreads? If so can I pause, resume and stop them?

I've always wondered is there a better way that I should be writing some of my procedures, particularly ones that take a long time to finish. I have always run everything off the Main GUI Thread which I now understand and realise is bad because it…
user1175743
22
votes
2 answers

How do I add a TXT file as resource to my EXE file?

I have a TXT file containing about 10,000 lines of text. I want to display these lines in a TMemo. But I don't want to distribute that TXT file my program. How do I integrate it into my EXE file as a resource WITHIUT using stringtable {} because…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
22
votes
4 answers

Best way to make a component icon in Delphi XE using only the built in tools

In Delphi 7, an image editor program is included, which can read and write .dcr files, which are merely binary resource files (.res files) with a different extension, which by convention indicates that the .dcr file contains a compiled resource…
Warren P
  • 65,725
  • 40
  • 181
  • 316
22
votes
7 answers

Wiki: Current state of the art of Delphi 3rd party TCP/IP components libraries

I've not been doing bare metal TCP/IP for about 18 months, so I wonder what the current state of the art is. I'm looking for both positive and negative aspects, with development of both server and client software. I will be doing a project that…
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154
20
votes
6 answers

Indy TCP Client/Server with the client acting as a server

How can Indy's TIdTCPClient and TIdTCPServer be used in the following scenario: Client ---------- initate connection -----------> Server ... Client <---------------command------------------- Server Client …
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
20
votes
2 answers

OmniThreadLibrary Overview

Is there a place where there is an introductory overview of the OmniThreadLibray for Delphi? I have the current code installed in Delphi XE. The examples work. I've been looking over the associated The Delphi Geek blog with usage examples. Gabr…
Rich Shealer
  • 3,362
  • 1
  • 34
  • 59
20
votes
3 answers

How to add manifest info into delphi project

What is the easiest way to add the manifest info to a Delphi XE project (.exe)? Is it possible to add just the required node like:
markus_ja
  • 2,931
  • 2
  • 28
  • 36
19
votes
1 answer

XPath and TXmlDocument

In Delphi XE is it possible to use XPath with a TXmlDocument component? I'm aware I can use late binding to access the MSXML2 and then use XPath: XML := CreateOleObject('MSXML2.DOMDocument.3.0') ; XML.async :=…
Salvador
  • 16,132
  • 33
  • 143
  • 245
19
votes
2 answers

TProc to TNotifyEvent

Further to this post whose accepted answer remains very cryptic: @Button1.OnClick := pPointer(Cardinal(pPointer( procedure (sender: tObject) begin ((sender as TButton).Owner as TForm).Caption := 'Freedom to anonymous methods!' end )^ ) + $0C)^; I…
menjaraz
  • 7,551
  • 4
  • 41
  • 81
18
votes
3 answers

Delphi XE TBytes correct usage

What is the correct usage pattern for a TBytes variable? From my understanding, TBytes is not a class, but a "dynamic array of bytes". I'm not sure where memory gets allocated for it, when it is freed, and which is the best way to pass it from a…
anon
18
votes
5 answers

Managing null values in variants using Delphi

I'm working with a COM component which exposes a lot of Variant properties, but sometimes these values are null. When I try to convert these values to string (or another Delphi type) the application raises an exception like this: Could not convert…
Salvador
  • 16,132
  • 33
  • 143
  • 245