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
5
votes
1 answer

Interface inheritance without generics

I am trying to implement an interface to convert records in a dataset to Delphi records in a pre-generics version of Delphi. I don't like the interface at the moment, as it will always need calls to Supports which I'd like to avoid if possible and…
Matt Allwood
  • 1,448
  • 12
  • 25
5
votes
1 answer

How to avoid getting an error 10053 (WSAECONNABORTED) if a HttpGet operation in Android is lasting too long?

I have an Android application communicating with a Delphi 2006 web service application using Indy 10 TIdHttpServer (coming with Delphi 2006). The Delphi application generates a big XML file and serves this. The XML generation may last more than 5…
Alois Heimer
  • 1,772
  • 1
  • 18
  • 40
5
votes
1 answer

Is WSDL sort order relevant?

I'm refactoring an existing C# .NET Web Service that is consumed by existing Delphi 2006 (non-.NET) clients. I don't want to rebuild/redeploy the clients. My goal is to keep the WSDL identical so that the proxy classes won't change. I used a tool…
TrueWill
  • 25,132
  • 10
  • 101
  • 150
5
votes
1 answer

delphi 2006 - Is it possible to find out if a resource name exists?

What it the best way to find out if a resource name exists - other than seeing if LoadFromResourceName (HInstance, 'FOOBAR') causes an exception?
rossmcm
  • 5,493
  • 10
  • 55
  • 118
5
votes
1 answer

Delphi - Comparing two pathnames when one is UNC and one is drive letter-specified

I have a situation where a user can specify two separate pathnames, and I need to check whether one pathname is "inside" the other one. I can do this if both pathnames are UNC, or both are drive-letter-based, but what if they are mixed? Can you…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
5
votes
3 answers

Adding a unit automatically to the project

I am working on a component in Delphi 7 and Delphi 2006, where I am using a unit which I need to add to the .dpr file of the project on which the component is dropped automatically. Like the way Eureka Log automatically adds the unit 'ExceptionLog'…
PresleyDias
  • 3,657
  • 6
  • 36
  • 62
4
votes
1 answer

Delphi - System.Copy good practices

From my knowledge strings are 1 based in Delphi, 0 position is reserved for the length. I am in charge of an huge application written in D5 and D2006, which is using the copy function by copying from the 0 index, and several colleagues are also…
RBA
  • 12,337
  • 16
  • 79
  • 126
4
votes
5 answers

Delphi - Exception handling on it's own constructor after it is raised

The question is: after am raising an exception, can I stop it to propagate from it's own constructor? consider the code bellow: unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, …
RBA
  • 12,337
  • 16
  • 79
  • 126
4
votes
3 answers

What's a simple way of programmatically simulating user input?

I have a dialog that pops up as result of an error condition. I want the dialog to remain open for at least 30 seconds, and close 30 seconds after the last user input (mouse or keyboard) is received. I can implement this by checking the value…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
4
votes
5 answers

Error 32 (file is in use by another process) when renaming a file

I have a Delphi 2006 app that writes to a file and then regularly renames it to a sequenced name, and creates a new one, i.e. open file.dat write a record to file.dat close file.dat ... open file.dat write a record to file.dat close file.dat …
rossmcm
  • 5,493
  • 10
  • 55
  • 118
4
votes
1 answer

Why Delphi says "Unit xxx compiled with a different version of yyy" if all my paths are correct?

First of all I would like to apologize for the question itself. I simply could not make anything better. Well, the question then follows with examples and detailed ... I manually installed QuickReport Delphi 2006 from their sources. It is composed…
4
votes
2 answers

Using a COM DLL in delphi - Access violation in MSVCR80D.dll error

I need to use a DLL created using .NET framework. This DLL is made COM visible. I want to use this DLL in an application created using Delphi 2006. I have followed following steps: Registered the DLL using regscr32. Imported the type library…
Hemant
  • 19,486
  • 24
  • 91
  • 127
4
votes
2 answers

Delphi - How do I break when a form's ComponentCount decrements

The code below is reproduced from Toolbar2000. It is part of routine that reads toolbar positions and dock states from an INI file. I call this routine during initialisation. This code below is iterating through all the components on the main…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
4
votes
2 answers

Why use string[1] rather than string while using readbuffer

I am having a record like this TEmf_SrectchDIBits = packed record rEMF_STRETCHDI_BITS: TEMRStretchDIBits; rBitmapInfo: TBitmapInfo; ImageSource: string; end; --- --- RecordData: TEmf_SrectchDIBits; If i am reading data into…
Bharat
  • 6,828
  • 5
  • 35
  • 56
4
votes
4 answers

Proper Catastrophic Error Handling

There's something I keep running into that I really haven't solved with Delphi programs and was wondering if anyone could instruct me on it. As the topic says, how do you do proper catastrophic error handling? For instance: // is file necessary…
Glenn1234
  • 2,542
  • 1
  • 16
  • 21