delphi-7

In Delphi 7, can I set up 'Debug' and 'Release' modes?

In most modern IDEs, you can have Debug and Release build configurations, and you can quickly switch between them. In Delphi 7, this does not seem to be possible. I have to go to Project Settings and toggle optimization and all the debug information stuff manually. It would be great if there was a plugin or some such that handled this ...

Is there any way to get code folding in Delphi 7?

I know this is a long shot - but is there any way at all to get code folding into Delphi 7? I'm working on some .. "suboptimal" .. code. Sometimes I really need to fold bits away to grok a stupid-long procedure. Currently I'm pasting code into Notepad++, which works, but it would be nice to have it in the IDE. ...

WARNING. Duplicate resource in Delphi 7, Infopower 4000

[Error] WARNING. Duplicate resource(s): [Error] Type 2 (BITMAP), ID TWWDBRICHEDITMSWORD: [Error] File C:\Borland\Delphi7\ip4000vcl7\LIB\wwrichsp.RES resource kept; file C:\Borland\Delphi7\ip4000vcl7\LIB\wwrichsp.RES resource discarded. I have searched the code for same named objects, like objects. Can anyone give me a clue w...

How to receive http request in Delphi 7?

Hi, Which component is best to use for receiving HTTP requests in Delphi application? ...

In Delphi 7, how do I escape a percent sign (%) in the Format function?

I want to do something like this: SQL.Text := Format('select foo from bar where baz like ''%s%''',[SearchTerm]); But Format doesn't like that last '%', of course. So how can I escape it? \%? %%? Or do I have to do this: SQL.Text := Format('select foo from bar where baz like ''%s''',[SearchTerm+'%']); ? ...

Delphi 7 - Embedded file open dialog in a form

(Note: I am using Delphi 7) Does anyone know if it is possible to embed a file open dialog inside your own form? We have a tabbed dialog and on one of the tabs we want the user to be able to browse for a file with the same functionality as the the standard open dialog e.g. 'Look in' combo box, places bar, shell file list, file name co...

What can influence Delphi executable size?

I have the very same delphi version, bpls, components, everything. And yet in three machines the resulting executables are different in size. What else can influence in the size of the exe? In my machine I get this size (Vista 6.0.6001): 4.547.584 bytes In my colleague's machine, he gets (XP 5.1.2600 SP3): 4.530.688 bytes In a thi...

safe(st) way rename a delphi Project

Im sure this will be a simple one but have a project that started as a test. When it was created it was saved as "Project2.dpr" Now the test is no longer a 'test', i would like to change the projects name to something more meaningful. whats the best way to do this? Any issues with just changing the file name and the Program line to t...

Delphi Short Cut to add Date and Name Comment

Does anyone know of a short cut to place my name and the date where the cursor is i.e. //021208 DarkAxi0m so i don't keep check what the date is when i'm adding comments. Im using Delphi7, with CnPack And GExperts Installed. I think it should be able to be done with one of those experts. ...

Delphi 7 & ICS sending DELETE requests

How can I send a DELETE request with delphi 7 and the ICS component so that I can access a REST api? ...

Delphi 7 and events

I'm researching a bug that looks like some kind of timing issue and so I'm a bit curious about how events work in Delphi 7. What happens is we get some data sent to our application through a COM interface and it gets handled in an event raised from the COM thread. It seems like the event, which has quite a bit of code in it, takes longer...

Create a 2 dimension Quickreport

I think im asking for the right type of report from Quickreport. What we have is a simple table, gauge,site,value Gauge and site are the keyfields, (there could be anynumber of Gauge-Site Pairs) normally there is only at most, about 10 sites. and we are looking to get a reports that looks like this site1 site2 site3 ga...

How to get list of units in a Delphi Compiled Package (.dcp file)

Is there a way to list what units/classes are in a Delphi compiled package? ...

File MD5 checksum

In this question is mentioned the wcrypt2. What I need is simply calculate the MD5 of a file. It would be perfect if I could calculate it without having to save it because it is a downloaded file in stream format. I would like to have the most straightforward way to do that. Thanks! ...

Skins in delphi7

I wish to skin my aplication and have noticed that there appears to be no obvious way to do this. I am used to skinning files for java and wondered if there was any way of changing the appearance of the "standard" delphi7 application. Edit:(taggs) ...

Dataset Update Filter Location

This has always bugged me to what is the best way to do the following... with a simple one to many db, when you have 2 tables/grids on a form and the 2nd one filtered by the first. where is the best place to put the filter code ie: procedure TForm1.tblCustormersAfterScroll(DataSet: TDataSet); begin if tblCustormersCustormerID.AsS...

How to tell if connected to internet

I wish to write a windows app which does something when I become disconnected from the internet. I was thinking of writing a very simple C#/Delphi app which simply polls every 20 seconds to see if I'm still connected. If I have to poll I'd really like a solution other than trying to download a web page from the net. I can't assume that ...

Get TChartSeries at XY Point in TChart

I'm using the TChart control that comes with Delphi 7 and wish to get the Series and Value # of the line/bar under the mouse pointer. I'm aware of the OnClickSeries event which provides great info but I really want this info when I hover over a series. EDIT: I found a hittest method on TChart which works with any series types and multi...

In Delphi, is outputdebugstring thread safe?

Simple question i belive, is outputdebugstring(pansichar('')); Thread safe? I/We have been using it in threads for debugging, and i never occurred to me if i should be doing it a different way. (delphi7) ...

XPath in Delphi7?

What is the best way of searching XML documents using XPath in Delphi7? ...