Questions tagged [delphi-2006]

Delphi 2006 is a specific version of Delphi. Use this tag for issues related specifically to development in Delphi 2006.

Delphi 2006 is a specific version of Delphi. It was released in December 2005.

Delphi 2006 codename is DeXter.

Delphi 2006 was preceded by Delphi 2005 and succeeded by Delphi 2007. As of August 2009 it was no longer officially supported by Embarcadero.

262 questions
3
votes
1 answer

Why doesn't this D2006 code to fade a PNG Image work?

This question springs from an earlier one. Most of the code is from suggested answers that probably worked in later versions of Delphi. In D2006 I don't get the full range of opacity, and the transparent part of the image shows as white. Image…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
3
votes
2 answers

Use TQuery.Locate() function to find other then first matching

Locate moves the cursor to the first row matching a specified set of search criteria. Let's say that q is TQuery component, which is connected to the database with two columns TAG and TAGTEXT. With next code I am getting letter a. And I would like…
user8675722
3
votes
5 answers

How to return WideString from COM server?

This Interface at _TLB.pas file // *********************************************************************// // Interface: ITMyCOM // Flags: (256) OleAutomation // GUID: {D94769D0-F4AF-41E9-9111-4D8BC2F42D69} //…
unreturned
  • 53
  • 2
  • 5
3
votes
1 answer

Problem in generating complex types while using XML Data Binding

I am using XML Data Mapping and having a problem with generating complex types while using it. If i am having an XML like below its working fine
Bharat
  • 6,828
  • 5
  • 35
  • 56
3
votes
4 answers

Getting Jpeg error #51 when loading from BLOB with Delphi 2010, fine w Delphi 2006

I have an old application developed in Delphi 2006 that I now needed to make some changes in. In this app, I'm loading images from a MsSQL "image" field but when i compile with delphi 2010 I get the error : "raised exception class EJPEG with message…
Bulan
  • 673
  • 1
  • 9
  • 24
3
votes
2 answers

How to set the code page of a Delphi 2006 executable

We're programming in Delphi 2006, using Multilizer 5.1 to translate the program. Now we've to added Polish as a new language in Multilizer. But when we open our executable, Multlizer says "Polish is not supported by the codepage". If we adjust our…
Liezzzje
  • 430
  • 2
  • 6
  • 17
3
votes
1 answer

Creating a Delphi Object in a Form

I have a Delphi Form with no component in it. Then, I create a unit with several classes. I've been trying to Instantiate the class and create an object in the form, but it's complaining that the class is undeclared. here is the error message:…
Denes
  • 47
  • 3
  • 11
3
votes
6 answers

Data structure for fast filtering (Delphi)?

I am optimizing a part of a Delphi application where lists of objects are frequently filtered using different criteria. The objects are kept in TObjectList structures and it is common to select a very small percentage (ex. 1%) of the entire set with…
Tihauan
  • 2,780
  • 2
  • 26
  • 29
3
votes
2 answers

What does exit code 250477278 of a Delphi application mean?

We have a customer who has a problem, that our Delphi application does not seem to start. But we cannot reproduce it here. The program however is starting, but immediately and silently exits with error code 250477278. Does anybody know, what this…
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40
3
votes
4 answers

Strange attribute value reported by FindFirst(), Attr = 2080

When searching for files with FindFirst() I get an attribute value in the TSearchRec.Attr field of 2080. It is not specified in the help as there are only these values available and no combination of them yields 2080: 1 faReadOnly 2 faHidden 4…
Niklas Winde
  • 1,761
  • 3
  • 23
  • 33
3
votes
3 answers

How to pass call stack information to an exception using EurekaLog?

I have a threaded application and for some purpose I want to pass call stack information of a catched exception to a new custom exception: try //here an unknown exception is rissen except on E: Exception do begin if ... then …
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40
3
votes
2 answers

How to handle UTF-8 and ANSI conversion before Delphi 2009?

In Delphi 2009 we have: RichEdit1.Lines.LoadFromFile(OpenDialog1.FileName,TEncoding.UTF8); RichEdit1.Lines.SaveToFile(OpenDialog2.FileName,TEncoding.Unicode); How do I do that on Delphi 2006 if I do not have TEconding yet? Is there someway to…
NaN
  • 8,596
  • 20
  • 79
  • 153
3
votes
4 answers

Parsing XML references in Delphi

I used Delphi 2006 data binding wizard to create a interface for an XML configuration file. Later on I realized that some repeated parts of the XML can be separated from the main file and referenced where needed. The resulting XML looks something…
Tihauan
  • 2,780
  • 2
  • 26
  • 29
3
votes
1 answer

Why has the Cardinal type in my application changed?

I have a program here which was working fine in Delphi 3 that I compiled and tested on Turbo Delphi 2006 and found a problem. The problem is this: I was using "cardinal" data types as an index for something. It worked in Delphi 3, but I found…
Glenn1234
  • 2,542
  • 1
  • 16
  • 21
3
votes
1 answer

Delphi - Implementation of "sepia" routine for an arbitrary color

I've seen the odd routine for converting an image to a sepia-tone version, like this one: function bmptosepia(const bmp: TBitmap; depth: Integer): Boolean; var color,color2:longint; r,g,b,rr,gg:byte; h,w:integer; begin for h := 0 to bmp.height do …
rossmcm
  • 5,493
  • 10
  • 55
  • 118