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

How to run video files continuously in Delphi?

I am using Delphi 5. I want to know when avi file play is completed using 'TFilterGraph'. I want to run number of avi file one after another automatically. So I have downloaded DSPack and used 'TFilterGraph' and 'TVideoWindow' component. avi file…
Vishal Tiwari
  • 739
  • 2
  • 12
  • 28
7
votes
1 answer

ADO cannot access SQL Server XML type column using native client (SQLNCLI)

i am using ADO, and one of the "native" drivers (e.g. SQLNCLI, SQLNCLI10, SQLNCLI11) to connect to SQL Server (rather than the legacy SQLOLEDB driver). ADO does not understand the XML SQL Server data type that the native drivers expose: field:…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
7
votes
2 answers

How to receive TAB key press in edit box?

i want to receive OnKeyPress events when the user presses the Tab key. procedure TForm1.Edit1(Sender: TObject; var Key: Char); begin case Key of #09: begin //Snip - Stuff i want to do end; end; end; i try subclassing…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
6
votes
2 answers

Can Delphi only use a .dll if required?

I have added these two methods to the 1st unit of my Delphi 5 application. function Inp(PortAddress: Integer): Integer; stdcall; external 'inpout32.dll' name 'Inp32'; procedure Output(PortAddress, Value: Integer); stdcall; external 'inpout32.dll'…
notidaho
  • 588
  • 8
  • 28
6
votes
4 answers

Enumerations in Delphi with custom values

It is possible to declare enums with custom values in Delphi 5 like this?: type MyEnum = (meVal1 = 1, meVal2 = 3); // compiler error Thanks!
SomeOne
  • 365
  • 1
  • 5
  • 10
6
votes
2 answers

Install Delphi 5 for Windows 10

I tried to install Delphi 5 on Windows 10, but hangs when configuring the BDE. I've tried in a different directory with administrator permissions. I've tried for compatibility mode as well. If someone knows , I am very grateful! This image is the…
Lucas Burg
  • 87
  • 1
  • 1
  • 5
6
votes
1 answer

TFlowPanel alike in D5

I am looking for an implementation of TFlowPanel (or similar) that will work with D5. Basically I need the TFlowPanel to work inside a TScrollBox (with Vertical scroll bar), so the controls will wrap based on the Width of that TScrollBox. The…
ZigiZ
  • 2,480
  • 4
  • 25
  • 41
6
votes
3 answers

Build using DCC32.exe in delphi

Hello I am building my delphi project using the following command: Command: dcc32.exe project.dpr d:\exe_folder The above command works good and I am able to cerate the exe in output folder. But when I build same project through IDE then on each…
Nalu
  • 1,107
  • 4
  • 20
  • 43
6
votes
4 answers

How to get version of running executable?

How can i get the version of my running application? i have been using GetFileVersionInfo(ParamStr(0), ...): filename := PChar(ExtractShortPathName(ParamStr(0))); //Get the number of bytes he have to allocate for the file information…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
1 answer

Imagelist with alpha blend icons loses Transparency

Here is (more or less) a related question: Delphi - Populate an imagelist with icons at runtime 'destroys' transparency. I have tested @TOndrej answer. But it seems I need to have visual styles (XP Manifest) enabled for this to work (version 6.0 of…
kobik
  • 21,001
  • 4
  • 61
  • 121
5
votes
3 answers

Show activity indicator while the main thread is blocked (continue)

Continue with previous question I want to be able to show some activity indicator even if the main thread is blocked. (based on this article). Problems based on the attached code: Using Synchronize(PaintTargetWindow); does not paint the window I…
kobik
  • 21,001
  • 4
  • 61
  • 121
5
votes
2 answers

TWebBrowser crashes with embedded Youtube clips

Here is my code: type TForm1 = class(TForm) WebBrowser1: TWebBrowser; Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); end; implementation uses…
kobik
  • 21,001
  • 4
  • 61
  • 121
5
votes
3 answers

How do I make TSpeedButton honor Windows themes?

I have an old app (Delphi 5) which I want to give it some changes. I have set a manifest for it, but speedbuttons are not following the Windows theme. What should I do?
Inside Man
  • 4,194
  • 12
  • 59
  • 119
5
votes
2 answers

Delphi Component: How to use parent font?

i have a custom component that uses the ParentFont. During construction of my component, i can see that initially the component's font is set to the default MS Sans Serif: constructor TCustomWidget.Create(AOwner: TComponent); begin inherited…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
2 answers

Using array of string with default parameter and overload procedure

I have this code, with a procedure that uses an overload and a default parameter: program Project2; {$APPTYPE CONSOLE} uses SysUtils; procedure Foo; overload; // not actually needed to reproduce begin end; procedure Foo(const a: array of string;…
zig
  • 4,524
  • 1
  • 24
  • 68