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
6
votes
5 answers

sprintf in Delphi?

Does anyone know a 100% clone of the C/C++ printf for Delphi? Yes, I know the System.Format function, but it handles things a little different. For example if you want to format 3 to "003" you need "%03d" in C, but "%.3d" in Delphi. I have an…
kroimon
  • 2,062
  • 3
  • 19
  • 23
6
votes
1 answer

How to recurse down paths over 255 characters and read file attributes?

Delphi : how to recurse down paths over 255 characters and read file attributes I am writing a console app and need to traverse a directory structure with paths much greater than 255 characters and then read attributes of the files within…
Tal
  • 61
  • 1
6
votes
2 answers

Open an ANSI file and Save a a Unicode file using Delphi

For some reason, lately the *.UDL files on many of my client systems are no longer compatible as they were once saved as ANSI files, which is no longer compatible with the expected UNICODE file format. The end result is an error dialog which states…
skamradt
  • 15,366
  • 2
  • 36
  • 53
6
votes
4 answers

Migrating from Delphi 2006 to Delphi XE2

There is a code base in delphi 2006 with no development for last many years. If the development needs to be activated what are the options. Continue developing in 2006. (Not sure of IDE support etc.) Migrate to Delphi XE2. (Not sure of what it…
lalit
  • 1,485
  • 2
  • 17
  • 32
6
votes
2 answers

Delphi IDE custom menu items, how to Add them?

I am working on a project using Delphi 7 and Delphi 2006, i am developing a component that will get certain system information. Now the requirement is that after the component is installed on the system, there should be a menu item on the IDE , like…
PresleyDias
  • 3,657
  • 6
  • 36
  • 62
5
votes
1 answer

How to find out the name of the common documents folder on a network machine

Given that I am executing an EXE file (D2006 app) on a machine across the network, how can I get the pathname to the commondocs folder on that machine, given that the EXE might have been invoked from a UNC shortcut or a mapped drive letter shortcut,…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
5
votes
1 answer

Delphi 2006: Run-time assignment of PNG to TImage loses alpha transparency

Delphi 2006's TImage doesn't quite support PNGs. In order to have images with alpha transparency on my forms I have to load them at run-time. I can load them at design time but they don't survive, I think because PNGs are not saved in the DFM…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
5
votes
4 answers

How might I find out the source of long delays on resizing the main form?

I have a D2006 app that contains a page control and various grids, etc on the tabs. When I resize the main form (which ripples through and resizes just about everything on the form that is aligned to something), I experience long delays, like…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
5
votes
6 answers

How to get a 64-bit random value in Delphi?

How can I create a random 64-bit integer value in Delphi 2006? The built-in integer-based Random() function seems to return only values between 0 and 2^31.
blerontin
  • 2,892
  • 5
  • 34
  • 60
5
votes
2 answers

implementing a timeout when reading a file with Delphi

I have an app written in Delphi 2006 that regularly reads from a disk file located elsewhere on a network (100Mb ethernet). Occasionally the read over the network takes a very long time (like 20 secs) and the app freezes, as the read is done from…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
5
votes
1 answer

Where is the sizing data of TOpenDialog stored and how can this be reset?

TOpenDialog has an option ofEnableSizing which allows the user to modify the dialog size of an open dialog. This sizing data seems to be stored for the application. If the program is started again the dialog is opened with the same size. My question…
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40
5
votes
3 answers

Fast way to split a string into fixed-length parts in Delphi

I need to split a string to a TStringList with fixed-length sub-strings. Currently I use: procedure StrToStringList(ASource: string; AList: TStrings; AFixedLen: Integer); begin Assert(Assigned(AList)); while Length(ASource) > AFixedLen do …
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40
5
votes
2 answers

Is calling ShowModal with setting PopupParent a good idea and is it necessary in newer Delphi versions?

To prevent newly created modal windows to become hidden under their modal parent window I got used to always set PopupParent when calling ShowModal (as adviced here, here and here): function TMyForm.ShowModal(ParentForm: TCustomForm):…
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40
5
votes
3 answers

Delphi debug a wrong unit

This is an odd behaviour by my D2006 as it happens sometimes only. I have a project I want to debug. The file I want to debug is named 'Main.pas'. I have another unrelated project with the same Unit name and sometimes the Debug prompt me the wrong…
Averroes
  • 4,168
  • 6
  • 50
  • 63
5
votes
3 answers

How to ignore timer events in Delphis MessageDlg

I have set up a global exception handler in Delphi. On some severe exceptions an error message is displayed (followed by Halt()). While the error message is shown, Delphi is processing the message queue, processing timer events, that lead to further…
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40