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
60
votes
9 answers

Unit testing in Delphi - how are you doing it?

I'm wondering how the few Delphi users here are doing unit testing, if any? Is there anything that integrates with the IDE that you've found works well? If not, what tools are you using and do you have or know of example mini-projects that…
Drew Gibson
  • 1,624
  • 3
  • 18
  • 22
55
votes
10 answers

Delphi 2006-2010 error: "Cannot create file C:\Users\Admin\AppData\Local\Temp\EditorLineEnds.ttr"

I am getting an error after installing Delphi 2007 (Edit: This problem occurs in all Delphi versions from 2006 to 2010) that I can not figure out and have never seen before. After restarting I can launch the program without any problems, but if I…
M Schenkel
  • 6,294
  • 12
  • 62
  • 107
27
votes
11 answers

Delphi code formatter

Are there any utilities that reformat Delphi code ? EDIT I am using Delphi 2006 Some feedback Thanks to all that answered this question I have been using the JCF code formatter - it works well and my code is been formated to Object Pascal Style…
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139
26
votes
5 answers

Firebird error "username and password are not defined" with Delphi application

I have an application made with Delphi 2006 and Firebird 2.5. For connection a use Interbase components from Delphi. I setting up in design time a TIBDatabase with username, password tc, and work ok, but when i want to run application in another pc…
Origen Banaru
  • 261
  • 1
  • 3
  • 3
20
votes
2 answers

Creating Accessible UI components in Delphi

I am trying to retrieve accessible information from a standard VCL TEdit control. The get_accName() and Get_accDescription() methods return empty strings, but get_accValue() returns the text value entered into the TEdit. I am just starting to try to…
Ostendo Nomen
  • 243
  • 2
  • 7
17
votes
5 answers

INDY 10.1.5 - Which SSL dlls work with Delphi 2006?

I'm trying to connect to google documents (following Marco Cantu's excellent REST example) but I am getting the following SSL errors: 1) If I use the SSL dlls from openssl-0.9.8i-i386-win32.zip I get the error: "Could not load SSL library" 2) If I…
Mattl
  • 1,588
  • 3
  • 24
  • 49
16
votes
4 answers

When should I use enhanced record types in Delphi instead of classes?

Delphi 2006 introduced new capabilities for records, making them more 'object-oriented'. In which situations is the record type more appropriate for a design than a class type? Which advantage does it have to use these record types?
mjn
  • 36,362
  • 28
  • 176
  • 378
16
votes
3 answers

Autosize columns for TListView

I want to auto-size all the columns in the TListView. I am using below code, but its not doing any thing. ListView1.Columns.Add.Caption := 'Field Name'; ListView1.Columns.Items[0].Autosize := True; How can i auto-size the columns of TListView in…
Bharat
  • 6,828
  • 5
  • 35
  • 56
15
votes
2 answers

Copying string content to char array

I want to copy the content in the string to char array. Can I use this code StrLCopy(C, pChar(@S[1]), high(C)); I am currently using Delphi 2006. Will there be any problems if I upgrade my Delphi version because of Unicode support provided in newer…
Bharat
  • 6,828
  • 5
  • 35
  • 56
14
votes
3 answers

Delphi - finding the process that is accessing a file from my program

I have a Delphi app that regularly writes to a local disk file. Occasionally it is unable to access the file - a sharing violation results when it tries to open it. A retry after a short delay is all that is needed, but when it occurs, I would…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
14
votes
2 answers

How do I define implicit conversion operators for mutually dependent records?

I am using the operator overloading for records in Delphi 2006. (Please don't answer this question by telling me not to.) I have two record types with the implicit operator overloaded. They are both only in the implementation of the module, not…
Richard A
  • 2,783
  • 2
  • 22
  • 34
14
votes
2 answers

Three valued logic in Delphi

How to best implement a three valued logic in Delphi? I was thinking of type TExtBoolean = (ebTrue, ebFalse, ebUnknown); with function ExtOr(A: TExtBoolean; B: TExtBoolean): TExtBoolean; begin if (A = ebTrue) or (B = ebTrue) then Result :=…
yonojoy
  • 5,486
  • 1
  • 31
  • 60
12
votes
3 answers

Delphi - How do you generate an event when a user clicks outside modal dialog?

Is it possible to fire an event when the user clicks outside a modal dialog? OK, Windows provides it's own clues when you do this by making the "bonk" sound, or by flashing the app's taskbar button, but I would like to provide some sort of…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
12
votes
2 answers

Balloon hints on Delphi app tray icon keep popping up indefinitely

I have a Delphi 2006 app that can minimize to a tray icon, and displays various alert messages via a balloon hint over the tray icon. Under some circumstances - I don't know when - a previously displayed balloon hint keeps popping up and won't go…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
11
votes
3 answers

What's the most CPU-efficient way to "waste time" in a thread?

I have a number of threads (100's) that each execute for a few seconds at a time. When they are executing, they spend a significant amount of that time waiting for a response from another system (a serial device). I am mindful that having 100…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
1
2 3
17 18