delphi-2009 Questions

8

Solved

In Delphi 2009, SysUtils.pas contains this in line 425: EProgrammerNotFound = class(Exception); Is this simply an easter egg or something serious? When should this exception be raised? Does it ...
Cronin asked 18/1, 2010 at 5:49

1

Solved

How to detect when the user locks/unlocks the screen in Windows 7? I found this question which has an answer for C#, but I'd like to use it in Delphi 2009. I'd guess there is some windows message ...
Squalor asked 31/8, 2017 at 18:47

3

Solved

So I am including in my unit some other units and after building application I receive a huge amount of warnings from those units. The amount is so large that I'am having problems in finding my own...
Tila asked 4/7, 2011 at 14:1

5

Solved

While debugging my application with Delphi 2009, I sometimes get the following exception occurring: (source: beholdgenealogy.com) This only happens occasionally, but after pressing OK, then my ...
Zoomorphism asked 4/2, 2010 at 4:41

4

In Delphi 2009 : When TListView's GroupView is Active, adding or inserting an item to a TListView always adds it to the end of the list, regardless of Index specified as param. When GroupView is s...
Carolecarolee asked 2/7, 2009 at 21:58

14

I'm building a program that uses plugins. Unfortunately, the plugin framework's dynamic linking forces the RTL and VCL out of my project EXE and into the BPL versions, and they don't have debug inf...
Harelip asked 9/1, 2009 at 19:1

2

Solved

I was working on my own package. Then while i was processing i wrongly click on the message "Don't load this package on the next start of Delphi"... Even i uninstall, clean my package... After i r...
Siu asked 17/10, 2016 at 10:32

4

Solved

Assume you have the following: //Note the original example I posted didn't reproduce the problem so //I created an clean example type IParent = interface(IInterface) ['{85A340FA-D5E5-4F37-ABDD...
Loving asked 7/12, 2010 at 18:6

3

I want to apply a fix from QC to a Delphi 2009 unit (DBClient as it happens). I know I need to copy the unit to another directory and make the change to the copy. How do I then get Delphi to compil...
Kenwee asked 28/6, 2009 at 14:20

7

Solved

can you recommend an open source Delphi crypto library that works with Delphi 2006, Delphi 2009 & Delphi 2010 Algorithms need: DES, MD5, SHA-1

4

Solved

If I try to use a closure on an event handler the compiler complains with : Incompatible types: "method pointer and regular procedure" which I understand.. but is there a way to use a clouser on ...
Mathura asked 11/12, 2008 at 17:49

6

Solved

I converted my program from Delphi 4 to Delphi 2009 a year ago, mainly to make the jump to Unicode, but also to gain the benefits of all those years of Delphi improvements. My code, of course, is ...
Publish asked 18/10, 2009 at 19:13

1

Solved

I have PageControl with two TabSheets. On each of them there is a Frame, lets call it Frame2. I have a background thread which is posting message to Frame2 when it has finished its task. The Frame2...
Sigmund asked 31/7, 2015 at 13:29

7

Solved

I just got Delphi 2009 and have previously read some articles about modifications that might be necessary because of the switch to Unicode strings. Mostly, it is mentioned that sizeof(char) is not ...
Howrah asked 24/9, 2008 at 8:33

5

Solved

How can I create an instance of an object using a class reference, and ensure that the constructor is executed? In this code example, the constructor of TMyClass will not be called: type TMyCla...
From asked 26/4, 2009 at 15:40

2

Solved

I have a custom control with both scroll bars enabled and I want to draw a simple red line border around the client area and the scroll bars, like in the image below. How I do this ? This is th...
Cyclometer asked 22/10, 2014 at 18:18

4

Solved

I often produce mathematical software in Delphi 2009, and publish it on my web site. However, the last year or so, Google Chrome has started to consider a small (but increasing!) number of my EXEs ...
Gapin asked 21/8, 2014 at 0:14

4

Solved

Sometimes as I am debugging step-by-step, just before a FormCreate Event or just after the FromDestroy the debugger starts to open DevExpress units (cxContainer.pas, ...) and so before FormCreate m...
Valetudinary asked 5/11, 2010 at 16:4

4

Solved

With Delphi 2009 Enterprise I created code for the GoF Visitor Pattern in the model view, and separated the code in two units: one for the domain model classes, one for the visitor (because I might...
Kemper asked 1/3, 2010 at 14:9

3

Solved

I am writing an application, which uses TIdTCPClient to communicated with another application via a socket. I want the application to try to connect to a certain server until the connection is est...
Pantie asked 15/11, 2012 at 13:13

5

Solved

When I use Delphi directives in code, like: {$IFDEF something} . . . {$ENDIF} Where do I assign the word 'something' in the project? I tried in some places in project options but it didn't work....
Pigeonhearted asked 25/12, 2010 at 12:50

2

Solved

I've been searching, but cannot find a solution so I figured perhaps I should simply post it. Here's what I'd like to do, in Delphi (2009): At a certain moment in my application, I'd like to show...
Mandel asked 4/4, 2014 at 18:31

1

Solved

I'm trying to post a request, in utf-8 however the server is getting it in Ascii. Tried the TstringList format of post. Tried the stream format Tried forcing the TStringStream to have UTF8 encod...
Agnella asked 10/11, 2013 at 17:5

1

I am trying to detect if a block of memory was not freed. Of course, the manager tells me that by dialog box or log file, but what if I would like to store results in a database? For example I woul...
Fakieh asked 9/1, 2012 at 7:26

5

I have a weird issue when converting code from Delphi 7 to 2010. It has to do with records. The record defined below, when sized in D7, is 432 bytes, and in D2009 (and 2010) it's 496. I know, that ...
Almswoman asked 8/7, 2010 at 17:43

© 2022 - 2024 — McMap. All rights reserved.