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
13
votes
6 answers

Delphi WideString and Delphi 2009+

I am writing a class that will save wide strings to a binary file. I'm using Delphi 2005 for this but the app will later be ported to Delphi 2010. I'm feeling very unsure here, can someone confirm that: A Delphi 2005 WideString is exactly the same…
David
  • 467
  • 7
  • 13
13
votes
1 answer

What are the MSBuild project level properties for Delphi?

The Delphi documentation for MSBuild says /property:name=value sets or overrides project-level properties, where name is the property name and value is the property value. Use a semicolon or a comma to separate multiple properties, or specify each…
Zartog
  • 1,906
  • 1
  • 16
  • 27
13
votes
2 answers

What is TExternalThread? "Cannot terminate externally created thread" when terminating a thread-based timer

This happens half of the time when closing my application in which I have placed a TLMDHiTimer on my form in design time, Enabled set to true. In my OnFormClose event, I call MyLMDHiTimer.Enabled := false. When this is called, I sometimes (about…
Michael Stahre
  • 481
  • 6
  • 14
13
votes
7 answers

Delphi 2010 RTTI : Explore Enumerations

Considering such an enumeration : type TTypeOfData = ( [XmlName('ABC')] todABC, [XmlName('DEF')] todDEF, [XmlName('GHI')] todGHI ); Where XmlName is a custom attribute used to define the serialization string for members of this…
ZeDalaye
  • 689
  • 7
  • 17
13
votes
2 answers

Why are TGeneric and TGeneric incompatible types?

I have started using of generics in Delphi 2010 but I have a problem when compiling this piece of code: TThreadBase = class( TThread ) ... end; TThreadBaseList = class( TObjectList ) ... end; TDataProviderThread = class(…
Petr Nehez
  • 143
  • 6
13
votes
4 answers

Delphi unit test for a TThread with FreeOnTerminate = True

What is the best way to write a Delphi DUnit test for a TThread descendant when FreeOnTerminate = True? The TThread descendant returns a reference which I need to test for, but I can't figure out how to wait for the thread to finish in the…
Rick Wheeler
  • 1,142
  • 10
  • 22
13
votes
2 answers

How do I work around Delphi's inability to accurately handle datetime manipulations?

I am new to Delphi (been programming in it for about 6 months now). So far, it's been an extremely frustrating experience, most of it coming from how bad Delphi is at handling dates and times. Maybe I think it's bad because I don't know how to use…
marco-fiset
  • 1,933
  • 1
  • 19
  • 31
13
votes
3 answers

Secure way to store password in Windows

I'm trying to protect a local database that contains sensitive info (similar to this question, only for delphi 2010) I'm using DISQLite component, which does support AES encryption, but I still need to protect this password I use to decrypt & read…
TheDude
  • 3,045
  • 4
  • 46
  • 95
13
votes
2 answers

Difference between datetimes in Hours, Mins, Seconds

I am trying to get the difference between two datetimes and display it in string as hh:mm q.parambyname('vstart').asdatetime:= vstart; q.parambyname('vend').asdatetime:= vend; d:= vend-vstart; mins:= d * 1440; q.ParamByName('mins').asBCD:=…
Blow ThemUp
  • 895
  • 6
  • 18
  • 29
12
votes
5 answers

Developing Apps with Administrator Rights in Delphi

I'm using D2010 under Windows 7 to write an app that seems to require admin rights (I think because it uses COM to communicate with a third party .exe, which also requires admin rights). I've added the manifest resource as required, but when I try…
Roddy
  • 66,617
  • 42
  • 165
  • 277
12
votes
3 answers

Delphi 2010 - property wizard or something similar, to avoid manual coding getters / setters

Is there any built in or external tool (wizard) to easily add class member (published field) with getters / setters? adding each field requires me to write quite lot of code. Let's assume I need to add Foo: Bar; property. I'll need to write FFoo:…
migajek
  • 8,524
  • 15
  • 77
  • 116
12
votes
3 answers

Efficient data structure for GUIDs

I am in search of a data structure which enables me to quickly (prefarably O(1)-quickly) determine if a given GUID is a member of a Collection of GUIDs or not. My current approach is to use a TDictionary with 0 as values. While this works quickly,…
sum1stolemyname
  • 4,506
  • 3
  • 26
  • 44
12
votes
4 answers

Delphi 2010 threads

Can someone post the simplest thread example for Delphi 2010 that for example puts some text into a memo when button clicked? With implementation and all. Thanks. Update: Ok, just a simple thread that does something. No need for a memo. Thanks.
user645976
12
votes
5 answers

Why Delphi says 'cannot resolve unit name xxx'?

I'm working with Delphi2010 Enterprise Update 4. When I'm opening my project in the IDE and displaying the mainform code, there are 2 unit names underline in red. xxx http://img268.imageshack.us/img268/6475/unitnameunresolved.png. I have verified…
TridenT
  • 4,879
  • 1
  • 32
  • 56
12
votes
3 answers

How do I read a UTF8 encoded INI file?

I have an INI file in UTF-8 format. I am using Delphi 2010 to read the INI file and populate a TStringGrid with the values in the INI file. var ctr : Integer; AppIni : TIniFile; begin AppIni :=…
user1527613
  • 1,100
  • 4
  • 12
  • 29