delphi-2009

Class Helper for generic class?

I'm using Delphi 2009. Is it possible to write a class helper for a generic class, i.e. for TQueue . The obvious TQueueHelper <T> = class helper of TQueue <T> ... end; does not work, nor does TQueueHelper = class helper of TQueue ... end; ...

unicode & special characters in delphi 2009

our delphi win32 app uses special characters like micro and copyright. we mostly use the arial. before delphi 2009, we had to provide a way to prevent the micro character from displaying since for some (many/most?) parts of the world, it was not displayed correctly. we'd replace micro with u, copyright with (C)... now that we're in d...

Delphi 2009 Upgrade Question...

Hi, i bought yesterday an upgrade to Delphi 2009 Pro. Now i have the problem that i have a version of Delphi 5 Enterprise, but it's registered, but the account has been lost. Is there a way to get the Delphi 5 version to be moved to my account, so that i can register the Delphi 2009 Pro. Otherwise i also got a Delphi 3 Pro laying arou...

Why does my program stop crashing if I call malloc instead of GetMem?

I am calling a C DLL from a Delphi 2009 application and I keep getting errors when memory allocated by GetMem or AllocMem is passed to the DLL. The only way around I could avoid these errors was by using malloc from msvcrt.dll. What is malloc doing that the built-in memory routines aren't, and how can I get the built-in ones to work? I r...

determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta had a problem with my app failing precisely in this area. my app is used globally. some of this code may have become obsolete since d2009...

Is there a hex editor component for recent Delphi versions?

I've been able to find a few hex controls by searching online, but none that will compile under Unicode. Does anyone know if there is one available? ...

How can I set the default file format in the Delphi IDE to UTF8?

Delphi 2009 sets the default file format for new source code files to ANSI, this makes the source code platform-dependent. Even for a new XSD file created in the IDE, which by default starts with this line <?xml version="1.0" encoding="UTF-8" ?> Delphi sets the file format to ANSI (this looks like a bug, for new XML and XSLT document...

Why does Delphi 2009 sometimes (more often that not) insist I build?

I have noticed that with Delphi 2009, I often get strange errors when compiling, such as recursive unit use, and sometimes just (seemingly) random errors which point to white space at the end of a unit. These are not really errors, because a full build will fix any of the problems, and I can carry on. I suspect that generics have someth...

TRibbon's large button's image is not centered...any ideas? easy to demonstrate at design-time.

i'm using delphi 2009 (updates 1, 2, 3, 4). i'm seeing something quite peculiar. the image on the button is not centered in the button when i have a large button with a large glyph! rather than being centered, the left part of the glyph starts at the center of the button. a clue is that when i: go into the action editor and selec...

Server AContexts List with Indy10

Hi, I'm using Indy10 under Delphi2009. I have a server/client application, with TidTCPServer and TidTCPClient. I found a problem in my "logical" code. This is : When the server disconnect, and after a time, reconnect, the sent-clients requests are not intercepted by the server, and the server cannot contact client (because-I think- the...

Adding validator symbol next to control on a Delphi form.

Hi, I have an application, where there are many forms which follow visual form inheritance. Every form has standard delphi components as well as custom components. Form validating functionality needs to be added. That is, A small red circle or astric image needs to be drawn next to a control, if the control's value is not valid. This...

Where should I begin when building a component?

Hello, I am looking to build my own component and have no idea where to begin. I have some Delphi books but they are old and outdated, and am looking for some recommendations on tutorials/books to help me do this. The component will be pretty simple, basically 2 labels and an image. I need hundreds of these in an array, so I thought a...

Is Delphi dead?

I know it is not entirely a programming question, but I posted it here because Delphi programmers use this forum. Why did Borland kicked off Delphi? The father of now famous Visual Studio, where did it get buried? Is it still widely used and how easily available is the community support? ...

which is the correct text comparison method for an international application...AnsiCompareText or CompareText?

i'm using delphi 2009 to write an app that uses an Access database. i noticed that MS Access' ORDER BY seems to be sorting international character sets like AnsiCompareText whereas throughout my app, i'm using SysUtils.CompareText( ). Access' (Jet's) ORDER BY results (delphi AnsiCompareText( ) is the same) Nørmork Öster RAM delp...

Compile delphi 5 code in Delphi 2009

It is possible to work with a Delphi 5 project in the Delphi 2009 IDE by referencing the Delphi 5 version of dcc32? If so are there any issues to watch out for concerning the way that project settings (search paths, conditional defines etc.) are implemented in 2009? Edit: Just to clarify I am also upgrading the project to Unicode but w...

Looking for a local database for D2009+

I'm trying to update a legacy app that does all its data storage in a hacked-together system of BDE Paradox files. The program works pretty well, under certain narrow conditions, but it has serious performance issues. I'd like to try and improve things by updating to a better database system. What I need is a local database, preferably...

Reading web pages / unicode

hello I have this function in Delphi 2009 /2010 It returns garbage, now if I change the char,pchar types to Ansichar,Pansichar it returns the text but all foreign unicode text is garbage. it drive me banana I have been trying all kind of stuff for 2 days now I thought I understoff this unicode crap but I guess I do not Help please tha...

Error message "Incorrect values within SQLDA structure" with Firebird and Delphi 2009

Hi, I'm strugling with error message "Incorrect values within SQLDA structure" when I'm trying to update blob field within Firebird 2.1 database from Delphi 2009 DBX application. However I get the error message when I'm trying to execute TSQLQuery with following SQL: "update MYTABLE set FIELD1= :data where id = :id" The relevant delp...

Parse Delphi Project File on C#

This may seem like an odd question, but I have my own reasons for this! I am trying to parse a Delphi 2009 project file (.dproj), which is an XML representation of the project. I Can load the document into an XmlDocument, but when I try and get to the units that are used in the project, SelectNodes gives me an empty list. An example of ...

Detect TWebBrowser refresh event in Delphi 2009

Hi, I am using a TWebBrowser component which I use to load XML documents into which are linked to a XSL file. I have a default page I display when no XML document is loaded. However, if the user deletes the XML file whilst it is open in the browser and then refreshes I get the standard resource could not be found error. What I would l...