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

Compiler directive SETPEFlags in Deplhi 5

I have one application which is built using Delphi 5.0 and works fine without any issues. But when running large report my application needs more than 2 Gb memory. After doing analysis found that using Compiler directive SETPEFlags we can increase…
Nalu
  • 1,107
  • 4
  • 20
  • 43
3
votes
1 answer

Indy 10 fails to install into Delphi 5

I have Delphi 10 Seattle, but I have an older program I wrote in 1995 with Delphi 1. I have since moved it to Delphi 5 — because of all the old 3rd-party components I have used over the years, it would be a total re-write (at least a year) to move…
3
votes
2 answers

Patching a public non-virtual method

I need to patch a public method for the entire application, replace it with my own but still be able to call the original method from my patched method. I know how to replace the method with my own. How to change the implementation (detour) of an…
zig
  • 4,524
  • 1
  • 24
  • 68
3
votes
1 answer

Is there a way to disable font anti aliasing when using TextRect (aka ExtTextOut in GDI32) in Delphi?

I'm using a custom gauge, based on the example that came with Delphi (5 Enterprise). For those that don't know, it's like a smooth progress bar, but displays the percentage or value in the centre (vertically and horizontally) of the component. To…
Drarok
  • 3,612
  • 2
  • 31
  • 48
3
votes
2 answers

Delphi: Return value might be undefined, despite setting it after begin

can anyone tell me why I get "Return value ... might be undefined" here: function TXMLAcceptorBCOLSubmission.createRecordsInBCFEEPAR(AXML: TRipXMLElement): String; var ... begin Result := '';
Jamie Kitson
  • 3,973
  • 4
  • 37
  • 50
3
votes
4 answers

Is there a Delphi 5 component that can handle .png files

Is there a Delphi 5 component that can handle .png files?
AJM
  • 32,054
  • 48
  • 155
  • 243
3
votes
2 answers

Will Delphi 5 IDE run on windows 10?

I run Delphi 5 on a surface pro 3 (win 8.1) as well as win 7-64bit on a desktop. If the surface pro 3 is "upgraded" to win 10 will Delphi 5 continue to run properly?
Pseudolus
  • 53
  • 1
  • 1
  • 4
3
votes
5 answers

Delphi: How to get the address of an event variable?

How do i get the address of the variable holding an event handler? e.g. TExample = class(TObject) private FOnChange: TNotifyEvent; end; i want the address of the FOnChange private member, event handler, variable. Why? i'm trying to figure out…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
1 answer

how to call WINAPI DsRoleGetPrimaryDomainInformation in delphi?

I am calling Windows API DsRoleGetPrimaryDomainInformation like shown in below code block. I want to get the Domain forest name and Domain DNS name. When I do ShowMessage for domain DNS name, it is just displaying "????" and for domain forest name…
DelphiLearner
  • 489
  • 6
  • 25
3
votes
2 answers

Get the address of a function using assembly language and Delphi map file

I am trying to look up the unit name and function name in the "Detailed" map file that is produced by building a project in Delphi 5. I found some code online that claims to do this but I can't make it work. Code Requirements: Delphi 5 One…
Mark Davich
  • 512
  • 1
  • 5
  • 16
3
votes
1 answer

Converting FindScanline assembly code to purepascal

I am trying to convert some Delphi 5 code to Delphi XE7-x64 and I am stuck on following code: function FindScanline(Source : Pointer; MaxLen : Cardinal; Value : Cardinal) : Cardinal; assembler; asm PUSH ECX MOV ECX,EDX …
AEonAX
  • 501
  • 12
  • 24
3
votes
3 answers

Delphi: How to respond to WM_SettingChange/WM_WinIniChange?

i need to know when my application recieves a WM_SETTINGCHANGE message (formerly known as WM_WININICHANGE). Problem is that the message pump in TApplication sends it down a black hole (default handler) before i can get a chance to see it: procedure…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
2 answers

How to build delphi projects for WIN64 when units inside it uses DesignEditors DesignIntf?

I am trying to migrate some code from Delphi 5 to Delphi XE7-WIN64. The scenario is DesignEditors is 32bit only since the IDE is 32 bit application. And the project I am migrating has units which have uses clause containing DesignEditors or…
AEonAX
  • 501
  • 12
  • 24
3
votes
2 answers

Delphi asm to purepascal

I am trying to migrate Delphi 5 code to Delphi XE7-WIN64 and I am facing a problem with mixed assembly code in the following block. Also I am asm newbie. procedure IterateMenus(Func: Pointer; Menu1, Menu2: TElMenuItem); var I, J: Integer; …
AEonAX
  • 501
  • 12
  • 24
3
votes
1 answer

MSXML2.ServerXMLHTTP late binding "send" method with BSTR fails with "the parameter is incorrect"

I'm having a VERY strange behavior with MSXML2.ServerXMLHTTP/MSXML2.XMLHTTP.3.0. The problem is with the send method. which can accept BSTR/SAFEARRAY/XMLDOC object/IStream This code works fine and worked for years (the usage of FServiceUrl, FReqXML…
kobik
  • 21,001
  • 4
  • 61
  • 121