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

How to Update Look and Feel of Older Windows User Interface?

I have a really solid computer program that was written for Windows XP. The program still works great and I would like to update the look and feel of the user interface. At this time, I would like to give the buttons etc. a more sleek, contemporary…
Brent
  • 55
  • 1
  • 7
3
votes
2 answers

Changing Popup Row Height after Font Size

I need my Visually impaired User to be able select a font size and mostly I have it handled OK, but Popup Menu is not working well as the Row height is not changed with Font Size. Using this... puMenuMain.OwnerDraw:=True; Screen.MenuFont.Size:=18; …
user2175495
3
votes
1 answer

What is the source of this memory leak (when using TCollection)

I have some code which i did not write, but there is a memory leak. The real strangeness is the memory only leaks if i zero a structure before returning it. Reproducible minimum code The leak is reproducible in Delphi 5 and Delphi 7. First we have a…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
1 answer

Does calling FastMM4 LogAllocatedBlocksToFile() periodically use up memory space?

I'm hunting an elusive memory problem in a Delphi 5 program, where memory gets randomly overwritten at the customer site. After trying a lot of things with no result so far I now want to use the FastMM4 output from the LogAllocatedBlocksToFile() to…
mghie
  • 32,028
  • 6
  • 87
  • 129
3
votes
2 answers

Ambiguous overload call to 'Create` (but not 'Foo')

I have an example class with two class functions Foo. One takes an argument, the other doesn't: TContoso = class class function Foo: IUnknown; overload; class function Foo(bar: IUnknown): IUnknown; overload; end; And i can call my static…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
1 answer

Cannot link the icon resource

I try to add an icon in my Delphi 5 project and compile/link it, but get the following error: "[Error] RLINK32: Out of memory!" What is the problem? The icon is at http://www.shuling.net/temp/Project2.zip
alancc
  • 487
  • 2
  • 24
  • 68
3
votes
0 answers

Layout control that is supported woth Delphi 5?

I am looking for a decent layout control that is supported with D5. Something like https://www.devexpress.com/Products/VCL/ExLayoutControl (does not support D5) But it could be much simpler. It also needs to support Right To Left. I realy hope for…
Vlad
  • 1,383
  • 14
  • 29
3
votes
2 answers

Difference between 2 dates in Delphi 5

I want to be able to find the difference in seconds between two TDateTime variables in Delphi 5. In the later versions of delphi there are helper functions SecondsBetween to do this. Is there a better way to do this other than rolling my own…
d h
  • 101
  • 7
3
votes
1 answer

Resize png image in Delphi - incorrect alpha channel

I am resizing png images which might have alpha channel. Everything works good, with one exception: I get some gray pixels around the transparent areas. The original image doesn't have any drop shadows. Is there a way to fix this / work it…
beerwin
  • 9,813
  • 6
  • 42
  • 57
3
votes
1 answer

Tabs and colored lines in Listbox

I am using a Tabbed Listbox component that was written by Fredric Rylander back in 1999 and it has been serving me well since then. :) Can't seem to find him anymore. I now have an application that needs both Tabbed Data and alternating colored…
user2175495
3
votes
3 answers

How to ignore some parameters in TQuery

If i have a SQL statement like below SELECT * FROM myTable WHERE CID = :vCID AND DataType = :vDataType And usually i use TQuery to get some data like below aQuery.ParamByName('vCID').Value := '0025'; aQuery.ParamByName('vDataType').AsInteger :=…
Leo.W
  • 299
  • 1
  • 7
  • 21
3
votes
1 answer

delphi hibernate push and detect

using Delphi5. I have an app that starts with windows boot and I would like to Close and Start it on the Hibernate/Wake command. I need to be able to detect if it is coming back from an Hibernate so I can run my app each time. I have a setting in…
user2445336
  • 53
  • 1
  • 5
3
votes
1 answer

Upgrade for file of records and backward compatability

I have such file: file of record Str: string[250]; RecType: Cardinal; end; but after some time using of this file my customer found, that Str never be bigger than 100 chars and also he need additional fields. In new version we have such…
Alex Egorov
  • 907
  • 7
  • 26
3
votes
1 answer

Office2003 compatibility pack installed?

In my program I have to load a excel-file. This file can have the following extensions: [.xls][.xlsx][.xlsm][.xlsb]. Excel07+ can handle all of these by nature, but to work with [.xlsx][.xlsm][.xlsb] in Excel2003 you have to install the…
3
votes
3 answers

What should I do or don't do to avoid Delphi "push dword" bug.

I found that Delphi 5 generates invalid assembly code in specific cases. I can't understand in what cases in general. The example below produces access violation since a very strange optimization occurs. For a byte in a record or array Delphi…
Maksee
  • 2,311
  • 2
  • 24
  • 34