delphi-5 Questions

2

Solved

i have a window that i want to minimize (to the taskbar), so i call ShowWindow: ShowWindow(Handle, SW_MINIMIZE); Except that rather than minimizing itself (to the taskbar), the window is iconifi...
Pietrek asked 3/6, 2011 at 15:14

4

Solved

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 ...
Jeffery asked 1/6, 2012 at 17:42

2

Solved

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 ...
Herwick asked 26/12, 2017 at 14:41

1

Solved

StrToFloat uses the DecimalSeparator of the format settings. It seems that Val only accepts strings that contains . as decimal separator. From the ASM code in _ValExt (which Val calls) it looks ...
Uraninite asked 24/12, 2017 at 10:46

8

Solved

Is there any way in Delphi 5 to convert a string to a TDateTime where you can specify the actual format to use? I'm working on a jobprocessor, which accepts tasks from various workstations. The tas...
Pend asked 24/9, 2010 at 12:1

1

Solved

I'm implementing my IDropTarget based on: How can I allow a form to accept file dropping without handling Windows messages? The implementation by David works fine. however the IDropTarget (TInter...
Urias asked 19/1, 2017 at 12:44

5

Setting a form to WindowState = wsMaximized will sometimes cause the form to be maximized but not: Long-time bug: this is a question I first asked in the Borland newsgroups in 2003: Accepted f...
Blood asked 20/10, 2013 at 17:15

3

Solved

In my class, i need to use a static variable ( static int next_id; in C++) I use private class var next_id: Integer; I get Error : PROCEDURE or FUNCTION expected. How to declare some variable...
Unitarianism asked 27/8, 2016 at 23:34

4

Solved

i'm looking to understand virtual override overload reintroduce when applied to object constructors. Every time i randomly add keywords until the compiler shuts up - and (after 12 years of deve...
Quixotism asked 6/10, 2010 at 19:8

1

Solved

I have this code in Delphi Detours library which I'm trying to port: type TInstruction = record Archi: Byte; { CPUX32 or CPUX64 ! } AddrMode: Byte; { Address Mode } Addr: PByte; VirtualAddr: ...
Baler asked 15/7, 2016 at 10:3

2

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 s...
Competition asked 17/10, 2015 at 2:20

3

Solved

I want to write a small utility which will help me load a single 32bit bitmap (with alpha) from a EXE resource: ImageList1.DrawingStyle := dsTransparent; ImageList1.Handle := ImageList_LoadImage(M...
Pleading asked 21/10, 2014 at 12:15

6

Solved

Update: gutted the question with a simpler example, that isn't answered by the originally accepted answer Given the following class, and its ancestor: TComputer = class(TObject) public const...
Kopaz asked 6/10, 2010 at 15:46

1

Solved

A co-worker mentioned to me a few months ago that one of our internal Delphi applications seems to be taking up 8 GB of RAM. I told him: That's not possible A 32-bit application only has a 32-bit...
Skindeep asked 2/9, 2015 at 15:32

4

Solved

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 t...
Holsinger asked 26/3, 2009 at 8:18

2

Solved

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 h...
Sharenshargel asked 30/12, 2014 at 4:42

2

Solved

I'm getting a (repeatable) floating point exception when i try to Trunc() a Real value. e.g.: Trunc(1470724508.0318); In reality the actual code is more complex: ns: Real; v: Int64; ns := ...
Goatsbeard asked 5/3, 2014 at 21:57

2

Solved

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 libra...
Trisyllable asked 6/11, 2013 at 17:12

1

Solved

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 'TF...
Thermopile asked 22/10, 2013 at 19:1

1

Solved

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 d...
Spandau asked 2/10, 2013 at 14:1

2

Solved

The following code should compile and does compile with many other types. However, the compiler reports a "Constant object cannot be passed as var parameter" error - despite the variable ...
Contradistinguish asked 10/9, 2013 at 11:39

2

I need to mute/un-mute the sound card at startup and shutdown. I have found some code to do the work, but often Windows slams through the shutdown and the sound never gets muted. Can someone ple...
Trulatrull asked 20/8, 2013 at 23:30

4

i have two projects in a project group: ProjectA ProjectB Whenever i open the ProjectGroup.bpg in Delphi, it always starts with the 2nd project as the active one: ProjectA ProjectB And ever...
Cragsman asked 24/3, 2010 at 14:58

1

Solved

I've been trying to track down a memory leak in Jedi VCL's JvHidControllerClass.pas, which i came across this change in the source history: Older revision: constructor TJvHidDeviceReadThread.CtlC...
Tetralogy asked 19/7, 2013 at 14:17

2

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 defines: Win32API...
Cirro asked 15/7, 2013 at 17:32

© 2022 - 2024 — McMap. All rights reserved.