delphi-2009

Consuming a SOAP Rails Webservice doesn't work in Delphi 2009 but was Ok in Delphi 2006

Hi, I have a soap webservice written in RubyOnRails and a client written in Delphi. The client and server comunicate fine using Delphi 2006, but compiling with the newer Delphi 2009 causes the Rails server to "crash". This is the request (generated by built in THTTPRIO): <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http:/...

Delphi SDI application - Not handling cascade/tile horizontal & tile vertically?

My application doesn't seem to receive or handle the same windows messages for the Cascade, Tile Horizontal/Tile Vertical on specific windows versions. Windows XP x32 - Not working Windows XP x64 - Not tested Windows Vista x32 - Not working Windows Vista x64 - Works fine?? Windows 7 x32 - Not tested Windows 7 x64 - Not ...

Delphi 2009 - Close all function from taskbar stops processing if presented with MessageDlg?

Hi, I have noticed a strange piece of behaviour when using MessageDlg and attempting to close my application via the Taskbar close all/group command. My application is as follows: There is a hidden main form which doesn't do anything other than handle some Windows Messages and pass them onto the child windows (if necessary). Each chi...

Closing a secondary delphi form causes the main form to lose focus

When showing a secondary form from the main form and from the second form showing a third form and then closing both forms will cause the main form to lose focus. Using Delphi 2009 with XP SP3 Here are my steps for reproducing the problem: Create a new VCL forms applications Drag a button onto the created form In the click handler cr...

Delphi 2009 compared to Delphi 2010

Currently we use Delphi 2007 because our application and some of our components are not compatible with Unicode. If and when we upgrade is it better to jump directly to Delphi 2010? Propably, but I wonder if there is other compability issues except unicode? How is performance, memory requirements and stability of those versions? ...

Why Doesn't Delphi 2009 Give A Message For A String Constant that is Too Long?

It got me stuck for an hour. I happened to have a string constant with about 280 characters in it. I was trying to use Pos to look for a substring within a long string constant. It gives the result 0 when the string is longer than 255 characters, but gives the correct result when the string is shorter. e.g.: pos('5', '123456789.12345...

TScreenTipsManager shows ribbon bar context sensitive help--how can i make the "Press F1 for more help." show the context sensitive help?

i'm using delphi 2009 with the VCL's TRibbon and TScreenTipsManager. TScreenTipsManager shows ribbon bar context sensitive help--how can i make the "Press F1 for more help." show the context sensitive help? what i mean is that they're hovering over a certain button, see the hint, and then press F1 for more info on this button...what's ...

Removing Delphi IFDEf compiler directives automatically

I am currently working with 'inherited' code that has (scattered randomly throughout) a whole bunch of conditional compiler directives based on the version of Delphi, going back to Delphi 2 . From now on, all development will be with Delphi 2009 or future. Is there a tool in Delphi 2009 , or a plugin, that will automatically remove comp...

TADOQuery filter and an expression always true.

I am trying to filter some records from a TADOQuery. I set the filtered property to true and when I set the filter to field='value', all works fine. I would like to dynamically build this filter by appending <space>AND field='value' to a value always true, and I thought 1=1 would do the trick. So I would have 1=1 as the default filte...

EProgrammerNotFound exception in Delphi?

In Delphi 2009, SysUtils.pas contains this in line 425: EProgrammerNotFound = class(Exception); Is this simply an easter egg or something serious? When should this exception be raised? Does it also exist in Delphi Prism and/or Free Pascal? Conclusion (after reading the answers so far): This exception might appear in fun source c...

Which event is fired before current record changes in ADOQuery and how NOT to change the current record?

In my application, there are these data components linked like so: DBGrid > (DataSource > ADOQuery > ADOConnection) DBNavigator > (DataSource > ADOQuery > ADOConnection) Whenever the user selects a different row from the DBGrid, or uses the DBNavigator, the ADOQuery's current record changes. Fine, but when the user makes some changes ...

Delphi 2009 using MSBuild in RAD Studio Command Prompt F1026 File not found

I have been stuggling to get the MSBuild to successfully build my .dproj file for the last few days on a build machine. First, I needed the EnvOptions.proj file from the developer's machine, which got me clear of the missing system.pas file, but now I am getting a compile error for a missing .dcu C:\Program Files\CodeGear\RAD Studio...

Code128/EAN128 barcode component for Fast Report?

During a migration of reports which contain EAN128 / Code128 barcodes to Fast Report I found that Fast Report does not use the correct symbology. The lines of a Code128 barcode are very wide so that they are perfect for long distance scanning in a warehouse. I reported it, but only received a recommendation for a third-party barcode libr...

Is there, or is there ever going to be, a conditional operator in Delphi?

I kept my hands off Delphi for too long, I guess; busied myself with Java and PHP a lot over the last couple of years. Now, when I got back to doing a little Delphi job, I realised I really miss the conditional operator which is supported by both Java and PHP. On how many places would you find lines like these in your Delphi programs? ...

How to disable automatic appending of wildcard pattern in Vista file open dialog

Hello, I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats. Since Vista automatically appends the wildcard patterns in the filter combobox, the expanded combobox is too wide to fit completely on the screen. Besides t...

What components and IDE add-ins do you install with Delphi?

After a clean install of Delphi, what components and IDE add-ins do you make certain that you install? What's your Delphi "rig"? Here's what I install after a clean installation: Delphi 2007 / Delphi 2010 JCL / JVCL - JEDI Code Library and JEDI Visual Code Library (600+ components) JWA / JWSCL - JEDI API Library & Security Code Library...

Why won't Delphi 2009 let me Include a Char in a set?

Here is another question about convert old code to D2009 and Unicode. I'm certain that there is simple but i don't see the solution... CharacterSet is a set of Char and s[i] should also be a Char. But the compiler still think there is a conflict between AnsiChar and Char. The code: TSetOfChar = Set of Char; procedure aFunc; var Char...

To choose track of upgrade Delphi from 2007

I'm working with a team for a bigger application with Delphi 2007. It use a bigger lecacy framework to access the data. Both the app and framework use String as datatype for strings. I have started to modify the code in framework to support Delphi 2009 strings, see my previous questions about this. I see 2 alternatives now: Alt 1 - Con...

How would I port this delphi 7 prog to .net (C#)?

http://forums.alliedmods.net/showthread.php?t=64767 The source acts like its missing a ton of stuff I can't find like uh TBX and some other things I don't really know the language, but I have hoping I could get it to compile with delphi 2009/2010.net and then see about porting its IL. (to C# I guess) The reasoning behind this is becau...

Where does CodeGear Delphi 2009 store settings

I'm running windows 7 ultimate (32bit) and have a very anoying problem with my installation of delphi. The problem is with the feature "Code Insight" and with "Code template completion", it is very anoying when it every time i write something and it wants to complete some piece of code for me (for example i hate it when he completes the...