delphi

How to retrieve a resource from within a tWebModule

I am trying to extract a gif image embedded as a resource within my ISAPI dll using WebBroker technology. The resource has been added to the DLL using the following RC code: LOGO_GIF RCDATA logo.gif Using resource explorer I verified it is in the DLL properly. using the following code always throws an exception, "resource not found"...

Fitnesse for Delphi 2006 / Delphi 2007 /Delphi 2009

Is there a version of Fitnesse that works on Delphi 2006/2007/2009 ? If so where can I find It? Are there any other programs like Fitnesse that work on Delphi 2006 ? ...

why does my D2009 exe produce emails with attachments named ATTnnnnn.DAT

Why does my D2009 exe produce emails with attachments named ATTnnnnn.DAT when the same source code compiled in D2007 produces emails with attachments correctly named with the original file name? I am using the respective Indy libraries that come with D2007 and D2009. Not having the original file name on the attachment prevents users f...

Safe to use TAdsSettings object in the main thread, and AdsQuery objects in other threads?

I have a Win-CGI application I am currently converting to ISAPI. The application uses the TDataset descendants for Extended Systems Advantage Database Server. As there can be only one instance of a TAdsSettings object, this must be in the main thread. TAdsQuery objects are needed in the request threads. Will this work - that is, wil...

How can I add an HyperLink in TRichEdit using Delphi

How can I add an HyperLink in a TRichEdit (using Delphi). I need to have something like: "This is my text, click here to do something." ...

What's safecall?

I'm working on the creation of an ActiveX EXE using VB6, and the only example I got is all written in Delphi. Reading the example code, I noticed there are some functions whose signatures are followed by the safecall keyword. Here's an example: function AddSymbol(ASymbol: OleVariant): WordBool; safecall; So, here's the question: wh...

How can I fix this delphi 7 compile error - "Duplicate resource(s)"

I'm trying to compile a Delphi 7 project that I've inherited, and I'm getting this error: [Error] WARNING. Duplicate resource(s): [Error] Type 2 (BITMAP), ID EDIT: [Error] File C:\[path shortened]\common\CRGrid.res resource kept; file c:\common\raptree.RES resource discarded. It says warning, but it's actually an error - compil...

Codegear RAD Studio help system is corrupted

I've been using Codegear RAD Studio for a over a year now but since the "May08 Help Update" the help system no longer works. If I open the help the contents pane is entirely blank. If I hit F1 I get the following error: "Unable to interpret the specified HxC file." I've searched for the answer using search engines and the Codegear ...

Getting BPL Versions at program start.

Is it possible to check what version of BPL (ie Rtl70.BPL, Indy70.bpl etc) are installed on a clients computer when the program starts? I have had some programs crash because the BPL on there computer is different to the ones on the build machine. If i have to add each BPL used into the installer on each update, i think it will defeat o...

Best resources for converting C/C++ dll headers to Delphi?

A rather comprehensive site explaining the difficulties and solutions involved in using a dll written in c/c++ and the conversion of the .h header file to delphi/pascal was posted to a mailing list I was on recently, so I thought I'd share it, and invite others to post other useful resources for this, whether they be links, conversion to...

can you access a Delphi DBIV database without it creating lock files?

I'm trying to read data from a Delphi DBIV database, every time I access the database it creates a Paradox.lck and a Pdoxusrs.lck file. I'm using only a TQuery Object to do this (nothing else). can I access a Delphi DBIV database without it creating these lock files? Thanks Stew. ...

Delphi 7 and Windows Vista

I have a simple software that is made in Delphi 7, and it crashes on Vista after a while. These are totally random crashes, nothing is written in any crash log, just stops working and then Vista tries to find a solution. Does anyone have any ideas ? ...

How to simultaneusly append several nodes to a XML file from different EXE instances, using Delphi

I have a command line tool, written in Delphi, which job is to insert a node in a XML file and then immediately exit. I need to make it possible several instances of the tool to be executed simultaneously and insert nodes to one and the same XML. To achieve this purpose I have introduced a simple file "mutex" - the tool creates one tem...

Alternative to Excel's RefEdit control that can be used outside of VBA

The RefEdit control that comes as part of VBA is a little buggy, but it's good for putting on a form when you want people to specify one or more ranges of cells (i.e. Excel.Range objects). The main problem is that you can only use the RefEdit control on a VBA UserForm (Microsoft states this, and my tests confirm it too). I'm making an ...

Hidden Features of Delphi

The "Hidden Features" series here on StackOverflow has generated some really interesting feedback. So what about my favorite IDE, Delphi? What are some hidden features there? I'll start with one of my own: You can invoke inline find by typing Ctrl+E, then typing your search term. ...

How to install Delphi 7 on Vista

I tried to install Delphi 7 on Vista several times and Vista prevented me from doing so by telling me that there are known problems with this application (Delphi 7). Several other people in my company experienced problems with installing D7 on Vista. This lead to the conclusion that we were at risk with our D7 application, as the compan...

How can i temporarily load a font?

I need to load some fonts temporarily in my program. Preferably from a dll resource file. ...

What is the best or cheapest library for creating PDF files in Delphi?

As the title states: What is the best or cheapest library for creating PDF files in Delphi? ...

Delphi Question : Multiple Tables in a TClientDataset?

Is it possible to put the results from more than one query on more than one table into a TClientDataset? Just something like SELECT * from t1; SELECT * from t2; SELECT * from t3; I can't seem to figure out a way to get a data provider (SetProvider) to pull in results from more than one table at a time. ...

Learning C, C++ or Delphi ?

I have been developing for about 8 years, and mainly come from a Web Background. I have extensively used the .Net Framework for development the last 5 odd years, including Web, Windows and Mobile. I have a good understanding of C# and VB, VB.Net I am thinking of learning a new language, and based on the interest I have understanding how...