delphi

good version control software for Delphi 2009

does anyone have a good idea for what I might use ? ...

How to remove duplicate records in grid ?

Hi, Good morning ! What is the best way to remove duplicate records from grid control? I use Delphi 2009 and devEx quantumGrid component. I tried looping through all the records and when a duplicate record is found then add it to list and apply filter on grid. I found this as time consuming logic. There are also two downsides of th...

Making a TPageControl flat in Delphi 7

Hi, I don't know whether this question can be answered here, but I hope it will. I wrote a simple text editor in Delphi 7 that serves as my primary IDE for writing C code under Windows. I run Windows in a VM and I needed something light. In any case, it uses a TpageControl that gets a new tab whenever you open or create a new file. Pret...

Are "class var"s initialized to zero?

I know that, in Delphi, instance variables and global variables are initialized to zero (this has been asked here before). However, what about static variables (class var)? I would expect class vars to be initialized to zero, just like global variables. But I've seen too many new Delphi compiler features that were still half-baked to as...

Anyone using Bing Map Web Services with Delphi?

Has anyone gotten Bing Map Web Services (formerly Virtual Earth Web Services) working with Delphi? Based on my experiences so far (both using Delphi and Visual Studio C#), I'm about ready to give up on it and go with the MapPoint Web Service until a future version of Bing Maps Web Services comes out. However, I thought I'd post a quest...

Making an IDE using Pascal Script and SynEdit

Hi, I'm creating a built-in script engine using PascalScript from RemObjects (excellent) and the SynEdit editor. It's almost finished using the IDE example shipped with PascalScript and the IDE example in SynEdit - but - I can't see how to ask PascalScript whether a numbered source line is 'executable' or not. (I can then use this to mar...

Using TCollection in Delphi

I'm trying to create a custom component with a collection property. However if I try to open the collection editor during design time by clicking "..." button in object inspector, nothing happens. What I am missing? Here's my TCollection descendant: TMyCollection = class(TOwnedCollection) private function GetItem(Index: Integer...

Incorporate Team Coherence version label into build

The accepted answer to this question suggests using an SVN revision number as part of the version number when building a release. I want to do something similar using Team Coherence, which doesn't do revision numbers quite the same way. For Delphi 2009 how can I set up a build script so that every release automatically includes a numbe...

Delphi Package: "The following changes must be made..." never goes away.

On one of my packages, which was adapted from another using Save-As and edit, I keep getting the following message (this is in Delphi 2007): ======= The following changes must be made before this package can be compiled. Choose OK to apply these changes and continue compiling. Remove cmSizePanel_Reg. Unit(s) cmSizePanel_Reg were...

How can I get a Kerberos ticket with Delphi?

Are there examples which show how Delphi invokes the Active Directory Kerberos server to request a ticket granting ticket / normal ticket? Background: the ticket is required for authentification to a web service which exchanges confidential information. Edit: a short source code example would be very helpful. I have found the JEDI Wind...

Freeing Multiply-referenced Objects

This is another post about me inheriting an Intraweb app that had a 2MB text file of memory leaks as reported by FastMM4, where I've got it down to 115 instances of one class leaking 52 bytes each. The leaks are from a rather convoluted instantiation and handling of the class. Each instantiation of the class is needed to get the app to...

What is Delphi's equivalent of C#'s invoke action on form(How to invoke in Delphi) ?

Hello, In my C# project,I used the following code to access my form outside its own class. public static FormMain singletonInstance { get; private set; } public static void PFA(Action<FormMain> action) //PFA = PerForm Action { var form = FormMain.singletonInstance; if (form != null) { form....

Speech recognition not working well

I have followed an article on Speech Recognition with Delphi (SAPI 5.3). http://edn.embarcadero.com/article/29583 I created a basic application. but the problem is that the application has got it all wrong ! it doesn't get what I am saying correctly. if i say for example : "word", it get "ward". and so on. is there any better way to d...

Problem with Check for updates in RAD studio

Hi, I installed Embarcadero RAD Studio (Delphi 2009). When the IDE ran for the first time, it downloaded updates and ran the MSI automatically. Accidentally I pressed cancel, instead of ok. So I thought of reopening the studio so that it may check for updates. But this time it didnot happen !! So, I used "Check for updates" from m...

How to recompile a specific unit from the VCL?

I want to apply a fix from QC to a Delphi 2009 unit (DBClient as it happens). I know I need to copy the unit to another directory and make the change to the copy. How do I then get Delphi to compile that unit and use it in favour of the DCU that already exists? ...

Need an embedded/In Memory Database

Hi all, I need an embedded/In Memory Database which support multithread access. Thanks! Leo ...

speech recognition from audio file instead of microphone

Hello, How can I perform speech recognition on speech coming from an audio file (.mp3, wav) instead of the microphone ? I want to be able to do that from C#.NET and Delphi. thanks. ...

Determine when a web service is available

How i can determine when a web service is available (on-line)? in Delphi or C#? ...

Drawing on a DataModule in Delphi

I wonder how difficult it would be to be able to have a custom background or be able to draw on the datamodule canvas somehow so that the relationships of all the datasets can be nicely represented with arrows and stuff. Way back in Delphi 7 or so I seem to remember some sort of datamodule designer which has disappeared (I always found ...

Known constructs that crash the Delphi IDE

I'm using Turbo Explorer 2006 (update 2), and sometimes the IDE crash in a certain unit, specially when I try to use class-completion. The unit (and whole project) are in production and have run fine for years, with daily modifications, it's just the IDE tools that fail. Usually if this happens, Delphi survives the crash, but some parts...