delphi

Information required on TDataSetProvider in Delphi

I have Midas project that uses a TDataSetProvider in one of RemoteDataModules in the Server Currently I am making use of the following events BeforeApplyUpdates - to create an Object BeforeUpdateRecord - to use the object AfterApplyUpdates - to destory the object Question: Will ‘ AfterApplyUpdates’ always be called even if the i...

dUnit Testing in Delphi (how to test private methods)

I have a class that I am unit testing into with dUnit It has a number of methods some public Methods & Private Methods type TAuth = class(TDataModule) private procedure PrivateMethod; public procedure PublicMethod; end; In order to write a unit test for this class I have to make all the methods public. Is there a di...

ORM for DELPHI win32

Does anyone know about an ORM or something similar for Delphi Win32. ...

How can I access SQL server using ADO through a proxy?

I have a Delphi application that uses ADO to connect to a SQL server hosted on the Internet. The user running this application wants to access the SQL server through a proxy internally. How can this be done? ...

Creating a Database using DBExpress in Delphi?

I need to create a Firebird Database programmatically using DBExpress. I have done this for SQL server, by first connecting to Master, then passing in the script for Create to a query, but with Firebird I have a little chicken and egg problem. ...

How to include/link C .lib files in a Delphi project.

We have a .lib file with functionality that must be included in a Delphi application. It is easy to include .obj files, but for some unknown reason, this won't work for .lib files. The help is not very helpful on this. And a google search did not help that much (most helpful was to use an other linker but I would like to avoid it if pos...

Generate Code for Invisible ActiveX Object Event Handlers in Delphi

You know in Visual Studio you can use the "+=" syntax and a couple tabs to have it autogenerate the code for an event handler? How do I accomplish the same thing in Delphi? I'm trying to create an event handler for an event in an invisible activex library that I've imported using the Import Component function. I realize that with impo...

Where can I get a free Flash player component for Delphi?

Where can I get a nice & free Flash player component for Delphi? The ones I know of are quite pricey! Or what is the best way to play Flash files in Delphi? ...

Delphi 2009, DbExpress with Oracle : Unable to load oci.dll

Hi everybody, i've setup a demo to test datasnap 2009, and i've got a problem with dbexpress. The dbexpress error message, (same at design time or runtime) : "Cannot load oci.dll library (Error code 127). The OCI.dll library may be missing from the system path." I'm using Oracle 8.0.5. The path to oci.dll (c:\orant\BIN) is in my syste...

Sorting DBAdvGrid with FIBDataSet by clicking on the column header

The only solution to the above problem i've found is to attach "ORDER BY" statement to the SQL-query of the FIBDataSet. Kind of strange because Grid has it's own quicksort() implementation but i can't get it work. Any ideas would be appreciated. ...

Form doesn't get updated

In my application (Main form is TTntForm, C++Builder 2006): void __fastcall TForm1::Button1Click(TObject *Sender) { Caption=L"1st caption"; // This works. Form1->Caption=L"2nd caption"; // But this doesn't work, // Caption of the form remains "1st caption". } What might be the cause of this ...

Are there any Videos/Screen casts on how to use exceptions in Delphi

Hi are there any nice videos on how to use exceptions in Delphi. ...

What is the best way to implement C#'s BackgroundWorker in Delphi?

I use C#'s BackgroundWorker object frequently to start a thread and perform a task. What's the easiest way to accomplish the same thing in Delphi? Here's some code in C#: private void button1_Click(object sender, EventArgs e) { BackgroundWorker bg = new BackgroundWorker(); bg.DoWork += new DoWorkEventHandler(bg_DoWork); bg.RunWo...

Why are my units "compiled with a different version" of my own files?

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 info enabled. So I built a testing framework that links to my plugins statically so I can actually see what I'm doing while tracing through the...

TClientDataset -- XML mapping.

I'm trying to save data in a TClientDataSet to an XML file, but it doesn't like some of my fields. The helpfile says to create a definition, in one of two ways: either with the xmlmapper.exe file in my \bin folder or with an IDOMDocument interface. Problem is, xmlmapper.exe isn't there, and IDOMDocument is one of those annoying structu...

Delphi Components for Face Identification and Tagging

Are there any good components, free or commercial, available for Delphi (I use Delphi 2009) that will allow me to easily implement face detection and tagging of the faces in photos (i.e. graphics/images)? I need to do something similar to what Google Picasa's Web Albums can do, but from within my application. ...

How to implement dynamic arrays in Delphi

I originally had an array[1..1000] that was defined as a global variable. But now I need that to be n, not 1000 and I don't find out n until later. I know what n is before I fill the array up but I need it to be global therefore need a way to define the size of a global array at run time. Context is filling an array with a linear transf...

Setting Up Event Handler in Delphi 2007 and Getting "Parameter Lists Differ" Error

I'm trying to write a class in Delphi 2007 that uses a ActiveX library. The class will catch an event that the ActiveX library has to expose its own event that adds some information to the ActiveX library's event. The bottom line is that when I assign my own procedure to the ActiveX library's event that I want to use, I get an error: ...

Global variables in delphi

Hey guys, I have a console application written in delphi. I saw that I can have global variables by assigning then to units scopes. but in console application I don't use units. (From what I've understood it's forms-only). ...

How can i remove a USB flash disk programmatically using delphi?

How can I detect and remove a USB flash disk programatically using delphi? I have seen some of the examples in this website, but they lack clear explanation on how to go about it! Please examples will really help! ...