Questions tagged [delphi-5]

Delphi 5 is a specific version of Delphi. It was released in August 1999. Use this tag for issues related to development in Delphi, version 5.

Delphi 5 is a specific version of Delphi.

Delphi 5 codename is Argus.

Delphi 5 was preceded by Delphi 4 and succeeded by Delphi 6.

395 questions
5
votes
1 answer

Delphi 5 component that will automatically add "db.pas" unit to uses clause?

I'm writing my own component, and I wish it to add "db" unit to the interface uses clause when ever I drop it on the form, since it has a published event like: TMyDBEvent = procedure(Sender: TObject; DataSet: TDataSet) of object; TDataSet is…
zig
  • 4,524
  • 1
  • 24
  • 68
5
votes
6 answers

How to not have a MainForm in Delphi?

i've been trying to get some modeless forms in my application to appear on the taskbar - taking advantage of the new useful taskbar in Windows 7. There's are many issues with the VCL that need to be undone before a form can exist on the taskbar. But…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
3 answers

"Application" global variable not recognized

I work on a large project in Delphi 5. Today, after merging two branches of the app together, one of the hundreds of units, UnitMain (the main form's unit, would you guess) stopped recognizing the Application global. This is a rather bizarre problem…
anon6439
  • 1,857
  • 1
  • 18
  • 18
5
votes
2 answers

How to eat bytes flowing out of a stream?

i am fixing a ZIP library class. Internally, nearly all ZIP implementations use DEFLATE compression (RFC1951). The problem is that, in Delphi, i don't have access to any DEFLATE compression libraries. But the one thing we do have plenty of is ZLIB…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
2 answers

How to overcome 255 character limit on conditional defines?

Conditional defines in Delphi are limited to 255 characters. That means that if you have more than 255 characters of defines, they are ignored. E.g. So the set of conditional…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
2 answers

DCC32 compiler configuration file and command line parameter precedence

I am trying to build first time my Delphi application through command line using DCC32. I have few doubts regarding the configuration file of my project. There are some search paths I have to add to project when compiling through IDE. When I remove…
Nalu
  • 1,107
  • 4
  • 20
  • 43
5
votes
4 answers

Does Delphi assign the variable before the object is constructed?

Does Delphi assign an instance variable before the object is fully constructed? In other words, given a variable: var customer: TCustomer = nil; we then construct a customer and assign it to the variable: customer := TCustomer.Create; Is it…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
5 answers

How to declare an Int64 constant?

i'm trying to define a constant in Delphi: const FNV_offset_basis = 14695981039346656037; And i get the error: Integer constant too large Note: 14,695,981,039,346,656,037 decimal is equal to 0x14650FB0739D0383 hex. How can i declare this Int64…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
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
1 answer

EnumerateTraceGuids returns "The parameter is incorrect" (87)

i am trying to call the Windows API function EnumerateTraceGuids: ULONG EnumerateTraceGuids( __inout PTRACE_GUID_PROPERTIES *GuidPropertiesArray, __in ULONG PropertyArrayCount, __out PULONG GuidCount ); Starting from the code sample…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
3 answers

Delphi 5 incompatible with library

I am trying to add an Advantech (BDaqCL.pas) library to my application project in Delphi 5 but the .PAS file is riddled with code such as: AccessMode = ( ModeRead = 0, ModeWrite, ModeWriteWithReset ); which causes the error: ',' or ')'…
notidaho
  • 588
  • 8
  • 28
4
votes
3 answers

How open a url with http authentication in Delphi?

How open a url (a browser window) that need "http authentication" passing login and password in a transparent way? The legacy app in delphi need open a report in ".aspx" from Reporting Services. Thanks, Celso
celsowm
  • 846
  • 9
  • 34
  • 59
4
votes
4 answers

Does Delphi 5 have a sorted dictionary container?

I'm new to Delphi 5 and looking for a container (ideally a built-in one) that will do the same job as map does in C++ (i.e. a sorted dictionary). I've done a preliminary Google search but nothing obvious seems to be suggesting itself. Please can…
Stuart Golodetz
  • 20,238
  • 4
  • 51
  • 80
4
votes
3 answers

How do i construct a WideString with a diacratic in a non-unicode Delphi version?

i am trying to construct a (test) WideString of: á (U+00E1 Small Letter Latin A with acute) but using it's decomposed form: LATIN SMALL LETTER A (U+0061) COMBINING ACUTE ACCENT (U+0301) So i have the code fragment: var test:…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
4 answers

Retrofitting Windows Event Log to a Delphi 5 app

I'm looking for a (fairly pain-free) means of adding some Windows Application Event-Log support to a small legacy Delphi 5 application. We just want it to log when it starts-up, shuts-down, fails to connect to a database etc. Several of the…
robsoft
  • 5,525
  • 4
  • 35
  • 47