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

When a class implements a descendant interface, why doesn't it automatically count as implementing the base interface?

What's the reason this won't compile? type IInterfaceA = interface ['{44F93616-0161-4912-9D63-3E8AA140CA0D}'] procedure DoA; end; IInterfaceB = interface(IInterfaceA) ['{80CB6D35-E12F-462A-AAA9-E7C0F6FE0982}'] procedure DoB; end; …
pragmatic_programmer
  • 3,566
  • 3
  • 29
  • 36
18
votes
5 answers

What is the compiler version for Delphi 2010?

In Delphi 2010, if I want to do this: {$IFDEF VER999} //some delphi 2010-specific code here {$ENDIF} What version # do I need to use in place of "999"?
JosephStyons
  • 57,317
  • 63
  • 160
  • 234
18
votes
5 answers

Method pointer and regular procedure incompatible

I have an app, which has multiple forms. All these forms have a PopupMenu. I build the menu items programatically, all under a common root menu item. I want ALL the menu items to call the same procedure, and the menu item itself is basically…
user1009073
  • 3,160
  • 7
  • 40
  • 82
17
votes
6 answers

Any tool to suggest unit reference automatically for Delphi 2010?

MS Visual Studio has a great feature: it automatically suggests the units to add in using clause when you typing the code with refrences to absent standard classes. Is there any 3-rd party tool to implement similar feature for Delphi? I'm tired to…
Andrew
  • 3,696
  • 3
  • 40
  • 71
17
votes
1 answer

How can a 32-bit program read the "real" 64-bit version of the registry?

I'm trying to read HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run with OpenKeyReadOnly, and GetValueNames, but it's returning values from HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run instead. How can I read the 64-bit values…
Gu.
  • 1,947
  • 4
  • 30
  • 49
17
votes
3 answers

Interfaces, Anonymous Methods and Memory Leaks

this is a constructed example. I don't want to post the original code here. I tried to extract the relevant parts though. I have an interface that manages a list of listeners. TListenerProc = reference to procedure (SomeInt :…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
17
votes
2 answers

Resuming suspended thread in Delphi 2010?

TThread's resume method is deprecated in D2010. So, I thought it should now work like this: TMyThread = class (TThread) protected Execute; override; public constructor Create; end; ... TMyThread.Create; begin inherited Create (True); ... …
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
16
votes
4 answers

Multiple Delphi versions on the same machine

What we would like to do is install multiple Delphi versions on the same machine, those versions are D7, D2010 and DXE. We had previously D7 and D2010, worked OK together(had to duplicate components for D7 and D2010 because of special conditions for…
user497849
16
votes
3 answers

A button control and underlying replacement for TBitmap that properly handles PNG transparency without writing pre-blend code

Delphi 2010's TSpeedButtons did not seem to really support PNG transparency properly, because the Glyph property uses a TBitmap internally, and TBitmap is for bitmaps, and doesn't support PNG transparency properly, and TSpeedButton.Glyph can't…
Warren P
  • 65,725
  • 40
  • 181
  • 316
16
votes
6 answers

delphi - strip out all non standard text characers from string

I need to strip out all non standard text characers from a string. I need remove all non ascii and control characters (except line feeds/carriage returns).
IElite
  • 1,818
  • 9
  • 39
  • 64
16
votes
5 answers

CharInSet doesn't work with non English letters?

I have updated an application from Delphi 2007 to Delphi 2010, everything went fine, except one statement that compiled fine but not working which is: If Edit1.Text[1] in ['S','س'] then ShowMessage('Found') else ShowMessage('Not…
Mohammed Nasman
  • 10,992
  • 7
  • 43
  • 68
16
votes
4 answers

Show "empty" TDateTimePicker

How can I show an "empty" TDateTimePicker in Delphi 2010 (that is, hide the display of the date so the control appears empty). I know about the trick of setting the format to show the epoch, but with Delphi 2010 running on Windows 7 the string…
Larry Lustig
  • 49,320
  • 14
  • 110
  • 160
16
votes
2 answers

Writing a string to a TFileStream in Delphi 2010

I have Delphi 2007 code that looks like this: procedure WriteString(Stream: TFileStream; var SourceBuffer: PChar; s: string); begin StrPCopy(SourceBuffer,s); Stream.Write(SourceBuffer[0], StrLen(SourceBuffer)); end; I call it like this: var …
JosephStyons
  • 57,317
  • 63
  • 160
  • 234
15
votes
1 answer

How can I increase the size of the string that an external debugger visualizer can display?

I am once again writing an external debugger visualizer, and am running into a wall. There appears to be a limit to the size of the string that the debugger visualizer can return. The TStrings debugger visualizer that shipped with Delphi 2010 had a…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
15
votes
6 answers

Adding the same Object twice to a TObjectDictionary frees the object

Look at this code: dic:=TObjectDictionary.Create([doOwnsValues]); testObject:=TObject.Create; dic.AddOrSetValue(1,testObject); dic.AddOrSetValue(1,testObject); The code Creates a Dictionary that owns the contained values Adds…
awmross
  • 3,789
  • 3
  • 38
  • 51