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...
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...
Does anyone know about an ORM or something similar for Delphi Win32.
...
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?
...
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.
...
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...
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 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?
...
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...
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.
...
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 ...
Hi are there any nice videos on how to use exceptions 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...
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...
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...
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.
...
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...
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:
...
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 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!
...