delphi-2010

Delphi 2010 Beta: What's on your wishlist?

Soon Delphi 2010 "Weaver" will enter in beta. (See http://www.embarcadero.com/products/beta_programs.php) Which would be your most wanted features for the next release of Delphi? Mine (from top of the head): tooling for synchronizing the representations of DB schema (aka. DB metadata) in code and in database language enhancements: ...

D2010 Beta: The Perfect Way to support Multi-Core

In my previous question about the expected features in the new D2010 one of the highest rated answers was 'Multi-Core Support'. Well, as we all know Delphi support thread programming since D2 (IIRC) and is used heavily in some areas. More specifically which is, in your opinion, the perfect way to support parallel programming in Delphi?...

Does somebody know the current status of Graphics32?

The last release of Graphics32 1.8.3 is dated with March 2007. When will there be an official Delphi 2010 compatible version? Is there any public SCM repository of Graphics32? ...

How can I update a DataSnap server while clients are still connected?

We use stateful DataSnap servers for some business logic tasks and also to provide clientdataset data. If we have to update the server to modify a business rule, we copy the new version into a new empty folder and register it (depending on the Delphi version, just by launching or by running the TRegSvr utility). We can do this even whi...

Performance impact of gesture recognition in Delphi?

Delphi 2010 reportedly supports gestures for user interaction (mouse or touch interface), primarily through the Windows 7 gesture API. Will supporting gestures inherently incur a major performance hit? In other words, is most of the gesture-related processing due to detection, or response to, the gesture? By "response to", I mean the ...

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"? ...

How can I resolve this error in Delphi 2010: "[DCC Error] E2223 $DENYPACKAGEUNIT 'OleAuto' cannot be put into a package" ?

I am converting a component package from Delphi 2007 to Delphi 2010. When I do a full build, it compiles and begins to link. During linking, I get two messages: [DCC Warning] MyPackage.dpk(235): W1033 Unit 'OleAuto' implicitly imported into package 'MyPackage' [DCC Error] E2223 $DENYPACKAGEUNIT 'OleAuto' cannot be put into a package ...

dbExpress error in Delphi 2010

The below code works in Delphi 2007, but it gives me this error in Delphi 2010: --------------------------- Error --------------------------- Cannot load oci.dll library (error code 127). The oci.dll library may be missing from the system path or you may have an incompatible version of the library installed. ---------------------------...

Is there a way to install Delphi 2010 on Windows 2000

I just downloaded the Delphi 2010 iso from my SA-subscription and wanted to install it in addition to my other Delphi installations on my notebook computer. Unfortunately it refuses to install because the machine is running Windows 2000. Is it possible somehow to get it to install it anyway? Or is there a technical reason why it might n...

How can I assign an interface variable to a variable of type Rtti.TValue

At the moment I give delphi2010 a trial and found the TValue type of the Rtti Unit. TValue have very interessting features, but I can't find a way to assign an interface. I try the following program Project1; uses Classes, SysUtils, Rtti; var list : IInterfaceList; value : TValue; begin // all these assignments works value...

How can I add ItemIndex to TRibbonComboBox?

I just discovered that the Delphi TRibbonComboBox doesn't have an item index, and it should. I'd like to fix this locally at least for the unit, and I think Delphi 2009 added a way to introduce new methods to an outside class without having to descent from the class, but I can't remember how. Is there a way to add 'function ItemIndex: ...

Static polymorphism in Delphi

Is there a way to implement static polymorphism in Delphi 2010? ...

Encryption library for Delphi

I'm looking for a free and up to date encryption library for Delphi 2010 that implements RSA and AES (Rijndael). I want a free library because I plan to write and publish some sample code that will use it. A Delphi 2010 version of TurboPower LockBox has been posted to the SongBeamer site, that implements both of these, but I'm concerne...

Is Delphi 2010 ready for production use?

I am currently using Delphi 2006 a few days ago I downloaded a copy of Delphi 2010. How stable is Delphi 2010? Should I wait until the first service pack comes out before moving to this version? EDIT I have been using Delphi 2010 for a few months and it is great. The version of Rave reports (7.7BE) that comes with Delphi 2010 is ful...

Steps to build Virtual Treeview in Delphi 2010

Just bought Delphi 2010 (having skipped 2009) and I am trying to get my project to compile. However, I am running in to a bunch of problems compiling Virtual Treeview 4.8.5. Can someone outline a fool proof way of compiling and installing Virtual Treeview in Delphi 2010? ...

How do I make the scroll bars show up on a TScrollBox?

The TScrollBox control looks like it's supposed to basically be a TPanel with scroll bars attached along the bottom and the right edge. I tried placing one on a form, but no matter what I do, I can't make the scroll bars actually appear, either at design-time or at runtime. Does anyone know how to make them show up? ...

TThread.resume is deprecated in Delphi-2010 what should be used in place?

In my multithread application I use TThread.suspend and TThread.resume Since moving my application to Delphi 2010 I get the following warring message [DCC Warning] xxx.pas(277): W1000 Symbol ‘Resume’ is deprecated If Resume is deprecated what should be used in place? EDIT 1: I use the Resume command to start the thread - as it i...

Unicode problems with Delphi 2009 / 2010 and windows API calls

Hi I have been using this function in Delphi 2006, but now with D2010 it throws an error. I think it is related to the switch to Unicode. Function TWinUtils.GetTempFile(Const Extension: STRING): STRING; Var Buffer: ARRAY [0 .. MAX_PATH] OF char; Begin Repeat GetTempPath(SizeOf(Buffer) - 1, Buffer); GetTempF...

A simple debug visualizer for delphi 2010

Hello, I gather some experience with the trial version of delphi 2010. I am looking for a simple debug visualizer, because the sample debug visualizers are not part of the trail. I do a lot with the new rtti type TValue and TValue.ToString can't be call from the debugger (results in an exception), so my idea is to write a debug vis...

How convert null-terminated string to an AnsiString ?

I have some code that compiles fine with D7 but fails with D2010. Obviously it is an Unicode issue: The compile error is: E2251 Ambiguous overloaded call to 'StrPas' Here is the whole procedure: procedure GetVersionInfo; type PLangCharSetInfo = ^TLangCharSetInfo; TLangCharSetInfo = record Lang: Word; CharSet: Word; end; ...