Questions tagged [delphi-2010]

Delphi 2010 is a specific version of Delphi. Delphi 2010 was released in August 2009, and is available as a standalone product or as part of RAD Studio 2010.

Delphi 2010 is a specific version of Delphi.

Delphi 2010 was released in August 2009, and is available as a standalone product or as part of RAD Studio 2010.

Delphi 2010 codename is Weaver.

Some of the major features of the Delphi 2010 release include:

  • The introduction of a new, rich RTTI (reflection) API that far exceeds the level of detail available in previous Delphi editions.
  • Full Windows 7 support at the compiler and standard library level.
  • Built-in VCL-level support for touch, multitouch and gesture input, even on earlier Windows versions without OS-level touch support.

Delphi 2010 was preceded by Delphi 2009 and succeeded by Delphi XE.

1635 questions
12
votes
1 answer

How to enable drag and drop between normal & UAC elevated privileges applications

I've read this answer about how one cannot use drag & drop files from explorer (typically running without extra admin privileges) with UAC-elevated applications. One would think that elevating privileges to an EXE would give, well, more privileges,…
TheDude
  • 3,045
  • 4
  • 46
  • 95
12
votes
2 answers

How can I declare an array property?

I constructed class system TTableSpec=class(Tobject) private FName : string; FDescription : string; FCan_add : Boolean; FCan_edit : Boolean; FCan_delete : Boolean; FFields : array[1..100] of TFieldSpec; public …
user1730626
  • 437
  • 1
  • 8
  • 16
12
votes
2 answers

Delphi XE2 RTTI broken?

I recently migrated from D2010 to DXE2 and found a showstopper bug (Or feature?) in XE2 and XE3 (Tested in my friend XE3) related to RTTI generation for TBytes fields inside classes. I found that the RTTI information for a TBytes variable inside a…
Eric
  • 552
  • 3
  • 14
11
votes
4 answers

Custom component dependency hell

I'm trying to make a package for a custom component I made. It's based on several libraries, including Graphics32, GraphicEx and CCR.Exif. I created a Package project, wrote the unit including its Register procedure, added some extra references…
Thijs van Dien
  • 6,516
  • 1
  • 29
  • 48
11
votes
1 answer

Is it OK to pass a null window handle to ShellExecute?

I have a Delphi console application that at the end needs to launch one of two applications. I'm having some problems getting ShellExecute to work without erroring, and I think the problem is associated with not having a handle for the console…
Dan Kelly
  • 2,634
  • 5
  • 41
  • 61
11
votes
1 answer

Counting folders within a folder

Does anyone know a code I can use to count the number of folders in a specified directory?
ple103
  • 2,080
  • 6
  • 35
  • 50
11
votes
6 answers

What is a safe Maximum Stack Size or How to measure use of stack?

I have an app with a number of worker threads, one for each core. On a modern 8 core machine, I have 8 of these threads. My app loads many plugins, which also have their own worker threads. Because the app uses huge blocks of memory (photos, e.g.…
Steffen Binas
  • 1,463
  • 20
  • 30
11
votes
3 answers

How can I declare a pointer based on a generic type?

I have a class like this: type A = class procedure DoStuff(tPtr: ^T); end; But when I try to compile, Delphi gives me this error: [DCC Error] RPML.pas(57): E2029 Identifier expected but '^' found How can I use a pointer to a parameterized…
Hal
  • 165
  • 1
  • 7
11
votes
4 answers

Delphi 2010 remote debugging - unable to get breakpoints working

I recently posted this question about my inability to get Delphi 2010 working with remote debugging. I have not had any success and decided to post up a simple step-by-step test technique that might highlight what I'm doing wrong. THIS IS REALLY…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
11
votes
3 answers

Delphi 2010 - hide welcome page

Does anybody know how can i disable welcome page without using the < -np > command line option, its very the annoying and blocks the IDE for a few seconds on each start, does anybody know where can i configure this?
CloudyMarble
  • 36,908
  • 70
  • 97
  • 130
11
votes
3 answers

Is there a way to trace through only project source in Delphi?

I'm using Delphi 2010 and I'm wondering if there's a way to trace through code which is in the project without tracing through calls to included VCLs. For example - you put in a breakpoint and then use Shift+F7 to trace through line-by-line. Now…
J...
  • 30,968
  • 6
  • 66
  • 143
11
votes
4 answers

Delphi conditional compilation in uses clause

I am trying to modify my Delphi 2010 code to compile in XE7 (and want to retain the ability to compile it in 2010). So in the unit that houses my mainform I added conditional directives. The following works fine in 2010 uses {$IF CompilerVersion…
ss2006
  • 207
  • 3
  • 10
11
votes
7 answers

Building Multi threaded TCP/IP Server

I wanna build a TCP/IP server that will be used by up to 100 concurrent clients, but still not sure how to get started. at least I need the server to this: Listening to client, and store all them on array or list. for each client, it need to…
DelphiDev
  • 381
  • 1
  • 3
  • 11
11
votes
2 answers

D2010 compiled line count discrepancy

When building a project there are two places where source line count is reported: On the compile progress dialog Under Project | Information In Delphi 2007 these two numbers were identical for the project we are building. In Delphi 2010 these two…
user265474
11
votes
1 answer

Delphi 2010: Where is DockForm.pas?

I have to upgrade an old Delphi3 project to Delphi2010. It uses a unit named DockForm, but I cannot find it anywhere in Delphi2010. It is present in the old Delphi3 install CD as uDockForm, but it should be also found in D2010, because own D2010…
oscar
  • 355
  • 1
  • 2
  • 13