delphi

Working with XML in Delphi (returning specific data to a variable)

I have been trying to work with Delphi 2010 and MSXML for the past few days, I am an extreme novice and need a little direction. var MemoryStream: TMemoryStream; XMLPath: String; sName: String; XMLDoc: variant; doc: TStringList; begin //unrelated code // Create XML File to hard disk begin MemoryStream...

Is there a SAX Parser for Delphi and Free Pascal?

Besides MSXML and SAX for Pascal, can you recommend a SAX parser for Delphi? It would be great if it could be used in cross-platform applications with Free Pascal. ...

Logging to the windows event log from an ISAPI application

Hello, I have an ISAPI application that needs to write to the standard windows event log. The code works just fine when in a user mode process but, as soon as it runs from the ISAPI application, it generates an access denied error when calling RegisterEventSource (no matter what event source I pass it: "Application" fails as surely as a...

Delphi - unit 'Classes' included but can't find function 'FindComponent'

Hi, I've created a simple class and got a little problem: I just want to use the method "findComponent' from the classes-unit. I've included the classes unit, but Delphi can't find the findComponent-method. Why? I'm sure that's a very simple problem... unit U_Test; interface uses Windows, Messages, SysUtils, Variants, Classes, Graph...

Is there a XSD-driven random XML test data generator?

For stress tests, I would like to create XML files based on a XSD with random (but valid!) test data. Is there a tool which can read a (simple) XSD file and build a XML file based on the schema definition? ...

Passing Database Server To Digital Metaphors Report Builder Server

I'm using Report Builder (Server) to run my reports. We currently host the component in a windows service, now the web tier we have is passing some information through to the server, the usual stuff like the report to run etc, but also the database server on which to run the report. We seem to be able to pick up these properties in t...

Delphi: Do I need to deploy BDE with DBChart?

Hi, My application uses TDbChart and ADO. I was wondering, for deployment, do I need to include BDE files too? Do you know other charting tools that can be used with ADO (freeware preferably)? I just need simple charting tool. TDbChart is a good one, but if I need to deploy BDE files too, I think it's becoming too bulky and complicated...

Ole Excel Delphi Date Problem

I have a Delphi application which reads data from an excel spreadsheet using code similar to the following: procedure TForm1.Button1Click(Sender: TObject); var xlApp, xlWorkBook, xlWorkSheet, arr: Variant; begin xlApp := CreateOLEObject('Excel.Application'); xlApp.Visible := False; xlWorkBook := xlApp.Workbooks.Open('C:\Temp\Bo...

Is there a Delphi 5 component that can handle .png files

Is there a Delphi 5 component that can handle .png files? ...

quikview ocx problems

Hi there, I have the "luck" to work with quikview, and I have to control it via the ocx component qlikOCX. I've imported the the OCX component into my (delphi 2009) IDE, and now I can simply drag an TQlikOCX object to my form and use it. Unfortunately, when I do something simple like procedure TForm1.Button1Click(Sender: TObject); be...

How to verify if the checkbox is checked in a Delphi TTaskDialog?

OK, this should be easy, but I do not find the solution, at least not in the not so good documentation.. In a TTaskDialog, you have the option to add one check-box. You can control its initial state by means of the tfVerificationFlagChecked flag in Flags. But how to get the state after the dialog has been Executed? Of course one can use...

Delphi - Cross-thread event handling

I have a small client-server application, where server sends some messages to the client using named pipes. The client has two threads - main GUI thread and one "receiving thread", that keeps receiving the messages sent by server via the named pipe. Now whenever some message is received, I'd like to fire a custom event - however, that ev...

Delphi - How can I detect presence of Anti-Virus Software?

When anti-virus software is running during the installation of my software certain components do not get installed correctly. I always tell the users to turn it OFF first. But, they forget and then I am racking my brains trying to figure out what went wrong. Is there a Delphi function that anyone knows about that can detect whether An...

Large numbers in Pascal (Delphi)

Can I work with large numbers (more than 10^400) with built-in method in Delphi? ...

xor encryption: setting value of key to 904932 eating up 'd'

i am making a program to implement xor encryption,while playing around with my program i entered various key combinations the program was working perfectly until i entered value of key : 904932 which caused ommition of 'd' character e.g if i enter 'hi my name is dexter and i hate my stupid sister dede' in edit1,encrypting and decrypting...

Threading Framework for Delphi 7 - any?

Hi, I'm looking for some threading framework to avoid writing it from scratches. Especially the tasks queuing and synchronization are what I need. I know OmniThreadLibrary which is great but is not compatible with D7. Any recommendations? ...

Delphi Open save to XML using Microsoft.Jet.OLEDB.4.0 (.mdb)

I have a application with working in access (.mdb) my connection is made using Microsoft.Jet.OLEDB.4.0 and i nead to export a MasterTable and detailtables (1,2,3) to XML is it possible? If it´s possible can i somewhere else (send by email) Open and update or insert into the database? the tables are the same only we are somewhere where i...

Ctrl+- (Ctrl+Hyphen-Minus) as ShortCut Key?

It might seem natural to use Ctrl++, Ctrl+-, and Ctrl+0 as shortcuts for an application's zoom in, zoom out, and restore default zoom (typically 100 %) actions. Now, in Delphi, I am able to assign Ctrl++ and Ctrl+0 as shortcuts. The former, though, requires that the plus sign of the main part of the keyboard is used; the plus sign of the...

WinDirStat-like control in Delphi

The program WinDirStats (written in C++, see http://sourceforge.net/projects/windirstat/ ) has at the top a control that combines a tree-like structure (The column "Name", first on the left) with other types of data (graphic bar in column "Subtree percentage") and other text columns. My question is, using Delphi 7, which control should ...

Why overrided Paint procedure calls itself again and again when I use Canvas?

I had this problem when I was developing my own component from this class: TImage And I used this code: procedure Paint;override; begin inherited canvas.TextOut(5,5,'Hi') end; Thanks in advance ...