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
9
votes
1 answer

Delphi 2010 compiler warning about instantiation of abstract class should be a compiler error

Is there any compiler options that let the compiler give me an error instead of a warning when i instantiate an abstract class? Foo = class procedure Bar; virtual; abstract; end; var f : Foo; begin f := Foo.Create; // <-- should give…
hansmaad
  • 18,417
  • 9
  • 53
  • 94
9
votes
2 answers

Loading RTF text from database into TRichEdit

I am currently in the process of migrating our software solution from Delphi 7 to 2010. Mostly the changes have been simple and there are only a small amount of hurdles left to go. On a form we use a TRichEdit which displayed rtf text grabbed from a…
Simon Hartcher
  • 3,400
  • 3
  • 30
  • 34
9
votes
3 answers

Delphi: validate email without regular expressions

Since Delphi does not have any regular expressions library built-in, have you seen a good function to validate email addresses at least to some degree in using only Delphi RTL/VCL? I don't want to link additional *.dll to my product integrating…
Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
9
votes
3 answers

Free Delphi compiler

Is there a free official Delphi 2010 compiler available for download? I have visited embarcadero's website but only see versions that cost $1500+.
Iron
  • 153
  • 1
  • 1
  • 4
9
votes
2 answers

Delphi TPath.GetTempPath result is cropped

I am using Delphi 2010 and my program wants to get the system's temp path. I am using TPath.GetTempPath and everything is working fine... at least for me and my coworkers. But on some customer machines this method returns a cropped path which is (of…
Patrick
  • 150
  • 1
  • 8
9
votes
2 answers

How to make TXMLDocument (with the MSXML Implementation) always include the encoding attribute?

I have legacy code (I didn't write it) that always included the encoding attribute, but recompiling it to D2010, TXMLDocument doesn't include the encoding anymore. Because the XML data have accented characters both on tags and data,…
Fabricio Araujo
  • 3,810
  • 3
  • 28
  • 43
9
votes
2 answers

What's the syntax for including methods in a variant record?

I have the following record definition E3Vector3T = packed record public x: E3FloatT; y: E3FloatT; z: E3FloatT; function length: E3FloatT; function normalize: E3Vector3T; function crossProduct( const aVector:…
Paul-Jan
  • 16,746
  • 1
  • 63
  • 95
9
votes
1 answer

Delphi 2010 won't include Large icons

We're just adding support for Window 7 to our in-house applications and we're having problems with including support for large icons to the applications. I've created a .ico file in IcoFX with the default range of icons included, and assigned this…
Dan Kelly
  • 2,634
  • 5
  • 41
  • 61
8
votes
2 answers

In a Dunit project and exe version info is disabled, how do I get it back?

Why cant I set a version info in a Dunit Test projet? The checkbox is disabled for this projetct, but not for other projects. See the screenshot:
Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121
8
votes
3 answers

simple text file encryption based on a key

I am trying to implement a simple text file encryption technique and I am using the following code to do so. The code is not written by me, I just googled and got it. The encryption technique seems to be pretty simple, concise and easy to implement.…
jimsweb
  • 1,082
  • 2
  • 17
  • 37
8
votes
1 answer

How to grab TRTTIParamter's default value

I have this class: TMyClass = class public function DoSomethingNice(const Value: string = 'Yes please!'): Boolean; end; Now, using RTTI, is it possible to get default value of parameter Value of method DoSomethingNice? if so, how? I'm mostly…
user497849
8
votes
1 answer

Read/write example codes for TPipeServer and TPipeClient components and security check

I need IPC between a windows service and a GUI application both written in Delphi 2010. I decided to use named pipe for this. I built and installed successfully Russell Libby's TPipeServer and TPipeClient components (link). I followed other answers…
8
votes
3 answers

Delphi SVN integration that works with SVN 1.7?

I've just upgraded my SVN repository from 1.6 to 1.7. A major change to the repository format in 1.7 is that the ".svn" folders are no longer stored in each subdirectory; only in the root folder of the repository. Unfortunately this seems to confuse…
awmross
  • 3,789
  • 3
  • 38
  • 51
8
votes
1 answer

How do I bypass Window's 'Copying'/file transfer window

I am coding a (specific) backup program (for Minecraft) and I would like to know a way I can bypass this window: I am still a beginner at Delphi, but I would like to see the different methods I could use to do so. Thank you in advance :)
ple103
  • 2,080
  • 6
  • 35
  • 50
8
votes
4 answers

Recommend a HTTP component for Delphi 2010 allowing Range'd downloads

Can you advice me a shareware HTTP component for Delphi 2010? I want to use it as HTTP multithread .exe file downloader. I.e. one big .exe file will be downloaded in several threads.
Vladimir
  • 81
  • 2