delphi-2007

Delphi MSBuild Build Configurations From Command Line

Delphi 2009 uses build configurations. When you create a new project you have two default build configurations "Debug" and "Release". Now I asked myself how to automate builds using MSBuild (which is supported by Delphi since version 2007). You can start the "msbuild" command in the "RAD Studio Command Prompt" in some Delphi project di...

Delphi 2007 isn't generating the XML I want to send to my Java-WS web service

I have a Java web service to which I've linked from a Delphi 2007 app using the WSDL Importer. Setting it up has been a rocky road but I'm almost there! I now have the situation where my arrays aren't being serialized in a way that my Java web service can consume. I've written the same app in .Net to test it out (it works fine) and the ...

How can I display a transparent PNG on Delphi 2007?

The TImage control doesn't support PNG. Is there some third party component that will? Thanks! ...

How do I turn specific Delphi warnings and hints off?

In CodeGear Delphi 2007, how can I turn specific warnings and hints off? I am attempting to turn off H2077 - Value assigned to 'varname' never used. ...

D2007 ClientDataset

Hello I would like to know whether it is feasible to use a ClientDataset with data-aware controls, when adding or editing an Interbase record. My intention is to open just a single record initially, using a SQLDataset, but I was hopeful that I could load that record into a Clientdataset, then clone the dataset when it came time to appe...

Does soCaseInsensitive greatly impact performance for a TdxMemIndex on a TdxMemDataset?

I am adding some indexes to my DevExpress TdxMemDataset to improve performance. The TdxMemIndex has SortOptions which include the option for soCaseInsensitive. My data is usually a GUID string, so it is not case sensitive. I am wondering if I am better off just forcing all the data to the same case or if the soCaseInsensitive flag and...

Delphi ClientDataset Read-only

I am currently testing with: A SQLConnection which is pointed towards an IB database. A SQLDataset that has a SQLConnection field set to the one above. A DatasetProvider that has the SQLDataset in (2) as its Dataset field value. A ClientDataset, with the ProviderName field pointing to the provider in (3). I use the following meth...

Tools which can parse Delphi XMLDoc format and build online help

The XMLDoc tool for API documentation is explained here: http://edn.embarcadero.com/article/32770 Are there any free or commercial tools which can be used to create documentation based on Delphi's XML doc format? Is there a newer version of the 'getting started' documentation? This page refers to Delphi 2005 and third party tools, som...

Any gotchas moving TServerSocket app from D5 to D2007?

I've done a brief Google around and found nothing but I feel I ought to ask. I'm not really expecting there to be anything, but would rather ask a question with no answers now than ask the question when it's all going wrong and discover that EVERYONE knew about a 'gotcha'...! To make overall support/development life easier (and to bring...

Run application or Process on a remote computer

I need to run an application or service on a remote computer. I have had success with psexec from SysInternals, but I am investigating and would like to compre alternatives. Ultimately the command will be run from within a Delphi application. Thanks, Pieter. ...

How To Subclass A Form in Delphi? Best Practices?

I've got a base form in Delphi 2007 that I'd like to reuse in another project, adding some other buttons and such. I'm familiar with subclassing a non-GUI object, but it is possible to subclass a Form in the same fashion? Can you make changes to the subclass Form in design mode? How do you go about doing this and what are some things ...

Saving a Base64 string to disk as a binary using Delphi 2007

I have a Base64 binary string that is part of an XML document that is sent to us by a 3rd party supplier, I would like to be able to save it back to its original file format (jpg). Using the accepted answer from this question "saving a base64 string to disk as a binary using php" I can save the string to a jpg with little effort, so I k...

Delphi 2007 (or 2009) build events tied to build configurations ?

Hi, Is it possible to add build events only for a specific build configuration in Delphi 2007 ? I use 2007 but would be interested in what you can do in 2009 also. Cheers Sam ...

Delphi 2007 help integration

I moved to Delphi 2007 in early 2008. It took a long time to migrate all my tools and components, and I'm not in a hurry to do that again. I moved from Delphi 6. (Bought D2006, but didn't use it much, due to the migration headaches). The MSDN / F1 help "integration" though, continues to drive me nuts pretty regularly. I access the D...

CreateProcess and WaitForSingleObject fails on the second of two PDF files

All I use CreateProcess and WaitForSingleObject in Delphi 2007 to open files and wait for them to be closed. I have found that when I open two PDF files in a row, the second WaitForSingleObject returns immediately. I have also found that this happens for jpg and tif files but not txt files. Also the second PDF takes 10 seconds longer t...

In Delphi, how can you check if an IInterface reference implements a derived but not explicitly-supported interface?

If I have the following interfaces and a class that implements them - IBase = Interface ['{82F1F81A-A408-448B-A194-DCED9A7E4FF7}'] End; IDerived = Interface(IBase) ['{A0313EBE-C50D-4857-B324-8C0670C8252A}'] End; TImplementation = Class(TInterfacedObject, IDerived) End; The following code prints 'Bad!' - Procedure Test; Var A : ...

Delphi - How do I fix this strange TGrid behaviour?

Delphi 2007. I have a TGrid with more rows than will fit on the screen, and the height of the grid is such that there is a partially drawn row at the bottom. When I click on this partial row, it jumps up to be fully visible (via a procedure called 'ClampInView' in Grids.pas). But it doesn't stop. Since the mouse is now over a new partia...

Delphi: How to debug run until you get back to your source file?

Hi, If I run a program and an exception is raised I am asked if I want to continue or break. If I choose break I can see where the exception is coming from but if the break is in a library or system file not one of my source files (Say the exception is in System.pas or Controls.pas) I need to manuall step the execution forward using F8...

What is difference between Indy 9 and Indy 10?

I am responsible for porting a Delphi 2007 application to C# and have absolutely no experience with Delphi. I am wondering what is the difference between the two Indy versions Delphi includes - Indy 9 and Indy 10. At this point I don't even know what an Indy is. Can someone help me out? Are they just different versions of the Delphi Libr...

*Sometimes* get an error when assigning to a constant in Delphi

I am using Delphi 2007 with all patches and updates. I have a file which is used by two different projects. In that file is a procedure, which I will simplify as follows: procedure MyProcedure; const UniqueValue: integer = 0; begin //some code Inc(UniqueValue); //some more code end; The Inc() command should fail, because you...