delphi-xe

What is needed to get Delphi back on top?

Delphi 2011 is on the horizon, which is the 14th release since Turbo Pascal became Delphi in 1995. Despite continued innovation it has not returned to its level of popularity before the Inprise fiasco. Many developers with Delphi backgrounds are moving to C# and many Delphi legacy applications are being rewritten in C#, despite the f...

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

RAD Studio 2011 ( ? )

Hi to all, is there any information available for the next version ( 2011 ?? ) of Delphi/cbuilder from Embarcadero ?. Is there some link somewhere pointing to info related to next Delphi / cbuilder , when and what it might be in ? Anything? Thanks a lot. Sebastian. ...

Enumerate all Delphi classes that implement a given interface?

With the new extended RTTI in Delphi 2010, can a Delphi application (at run time) build a list of all classes which implement a given interface? ...

Upgrading a win32 VCL application to cross platform

Delphi 2011 will allow to compile applications that will run also on Mac OS. (Note: I wrote this sentence before Delphi-XE preview was out, and at that time everybody was speaking of ProjectX). Is it realistic to think that it will be possible to "migrate to cross platform" a win32 application? Will 3rd party component vendors make the...

What is TMonitor in Delphi System unit good for?

After reading the articles "Simmering Unicode, bring DPL to a boil" and "Simmering Unicode, bring DPL to a boil (Part 2)" of "The Oracle at Delphi" (Allen Bauer), Oracle is all I understand :) The article mentions Delphi Parallel Library (DPL), lock free data structures, mutual exclusion locks and condition variables (this Wikipedia art...

Jedi Library and Delphi XE

Typically, the install of the JEDI libraries is done using the installer. Does anybody know if the installer Works with Rad Studio XE (Delphi and Builder) Can be easily modified to do so if not Knows of some manual install instructions? Thanks ...

IWFile fix for c++ Builder XE?

IWFile is broken in the current release of Rad Studio XE. To fix it, Delphi users are asked to delete the UTF8ContentParser line. http://www.atozed.com/intraweb/blog/20100524.EN.aspx c++ Builder has a line that #includes UTF8ContentParser.hpp. Commenting out this line does not fix the issue. Has anybody figured a way around this for ...

Should I use ApplyUpdates(0) or ApplyUpdates(-1)?

The Delphi XE dbExpress tutorial in the online documentation uses ApplyUpdates(-1): // Client data set has provider do update. ClientDataSet1.ApplyUpdates(-1); Some online sources however say it would have advantages to use ApplyUpdates(0), and it would be a widespread mistake or bad practice to use -1. Is this true? And when and ...

Delphi XE : Lost Library path :(

I have lost most of my Library Path in Delphi XE after upgrading from Delphi 2010, Now even some simple app will fail to compile :( Is there any way to recover those lost dirs? Thanks a lot! EDIT: I found a surprising solution to this problem, just delete this registry key: HKEY_CURRENT_USER\Software\Embarcadero\BDS\8.0\Library and...

Getting the Unit Name wich belongs to any type (TRttiType)

I need to get the name of the unit (namespace) of any TRttiType. so far, I have tried the following. 1) using the PTypeData.UnitName, this solution works, but only when the TTypeKind is tkClass. procedure ListAllUnits; var ctx : TRttiContext; lType: TRttiType; Units: TStrings; begin Units:=TStringList.Create; try ctx :...

How Determine if a TRttiMethod is a function

I need determine if a TRttiMethod is a function so far, i wrote this function Function IsFunction(QualifiedName,MethodName:string):Boolean; Var ctx : TRttiContext; lType : TRttiType; lMethod : TRttiMethod; Begin result:=false; ctx := TRttiContext.Create; lType:=ctx.FindType(QualifiedName); if Assigned(lType)...

XML Data Binding Wizard doesn't bind XSD's correctly.

Simple issue, actually. Just curious if others recognize the problem and perhaps have a working solution for it... I have a simple XSD file which I use to define a configuration file that is used by my application. I need to bind this schema to my project and this is done using the XDBW. In Delphi 2007, this wizard would just recognise ...

Determine when a TRttiMethod is marked as overload, override or abstract

Is possible using the Rtti determine if a TRttiMethod is a marked as overload,override or abstract ? thanks in advance. ...

Enumerate global methods of a unit using delphi

suppose i have a unit like this unit sample; interface function Test1:Integer; procedure Test2; implementation function Test1:Integer; begin result:=0; end; procedure Test2; begin end; end. Is possible enumerate all the procedures and functions of the unit sample in runtime? ...

How can I list the Attributes of a property using the rtti?

I am currently using this code, but does not list anything. What I'm missing? program ListAttrs; {$APPTYPE CONSOLE} uses Rtti, SysUtils; type TPerson = class private FName: String; FAge: Integer; public [NonEmptyString('Must provide a Name')] property Name : String read FName write FName; [MinimumInteger...

Delphi Prism - DataModule - Data binding

What is the equivalent for Datamodule in Delphi Prism XE? How data binding is supported in Winform applications using Delphi Prism XE? ...

Delphi XE IDE code parser error ?!?

After adding a IdUDPServer to my form and trying to put some code into the OnUDPRead event, I'm not able to add any component to my form at design time, nor can I run the application. is there any way to solve this ? ...

Sharing a project between two versions...

Delphi is a great IDE and compiler. But sometimes it also has a few minor flaws. Like my problem right now... I am working on a project that's created in Delphi 2007. But I like to use Delphi XE simply because the IDE has some interesting features and it happens to be more stable on my computer. So I opened the project in Delphi XE and h...

delphi xe disable RTTI

i have use delphi xe recently but exe size is very big because of rtti(i think) howto remove rtti , and can i make my application size as small as delphi 2009 application(490 kb) without comprssion; and what is the use of rtti ...