I am getting to know the dbexpress firebird driver from Chau Chee-Yang (http://sites.google.com/site/dbxfirebird/)
I find it hard to install because there is very little information, I
succeded making a connection, but several questions arise: When using
the data explorer and I want to connect to the database sends me the
following erro...
Hi All,
My app contains documents in its database. The users can open the documents in which case, the document gets saved to a temporary folder and gets opened on the user's computer.
I'd like to get a notification when one of these temporary files are changed, and offer the user to save the changed document back to the database.
Wha...
If you put a breakpoint in System._StartExe and examine the InitTable that gets passed in, you'll notice that InitTable.UnitCount is greater than InitTable.TypeInfo.UnitCount. Unfortunately, neither of these records are documented very well. Does anyone know what these two numbers represent and why they're different? I assume InitTabl...
It seems that I've finally got to implement some sort of threading into my Delphi 2009 program. If there were only one way to do it, I'd be off and running. But I see several possibilities.
Can anyone explain what's the difference between these and why I'd choose one over another.
The TThread class in Delphi
AsyncCalls by Andreas Haus...
I have a Com Object, setup/create/working from a DataModule.
creating/running/freeing the Datamodule from an Application works with out an issue.
but putting the datamodule into a DLL works fine the first time, runing the com object etc.. but after a few calls with out restarting the application, this error appears.
There is a fare ...
I am drawing text on TCanvas using TextOut() but I want bigger fonts.
What can I do?
...
I have got a DLL and a program, both written with Delphi 2007. The program passes an interface, which descends from IInterface and does not have a GUID (so no COM here) to the DLL which stores it for later use.
This seems to work fine but sometimes I get access violations when the program is closed and the DLL is unloaded. I am not sure...
Hi ,
I have a public server(configured with indy 10) . some unknown clients are sending thousands of no content messages that it change the server's cpu usage to 50% . i have no firewall on my server , so i tried to block the unknown clients with this codes :
This is a function that works with a Timer :
var
i, j: integer;
begin
IX...
I'm not sure if this is possible in Delphi. I've looked around and can't seem to find an answer (Example or inidaction that it's not possible):
I have a generic list class, and I want to create an instance of the generic type. For example:
type
TTypeA = class(TObject);
procedure Test;
var
MyList: TobjectList<TTypeA>;
NewListObje...
Is it possible to use interface method as event handlers in Delphi 2007? The simple versions don't work:
type
TMyEvent = procedure of object;
IMyInterface = interface
procedure Handler;
end;
TMyClass = class(TInterfacedObject, IMyInterface)
public
procedure Handler;
end;
var
ev: TMyEvent;
obj: TMyClass;
intf...
From my application I wish to open a dialog, which should close immediately (after a short message) under some circumstances.
I've tried this:
procedure TForm2.FormActivate(Sender: TObject);
begin
if SomeCondition then
begin
ShowMessage('You can''t use this dialog right now.');
close;
modalresult := mrCancel;
end;
end...
Hello friends,
I am working with Delphi. I want to track on which key is pressed. I am using KeyDown event of TForm. It is working fine but the problem is that, if I press and lower case letter, though it gives me upper case of that letter. How can I recognize the key pressed is lower case or upper case?
...
I am amazed by the automatic code formatting feature in VB.Net IDE that when you type a line of code and then move the cursor off that line, the code will automatically be indented and the proper text type cases will be applied as if the code was formatted with the coding standards. Is there any IDE experts, IDE plugins etc that will mak...
I use this code with TCheckListbox (lbServices) and it works fine. But with TcxCheckListBox from Devexpress it raise exception.
procedure TMaintenanceForm.AfterConstruction;
var
i: Integer;
ActionObj: TAction;
begin
inherited;
for i := 0 to ServiceActionList.ActionCount-1 do
begin
ActionObj := ServiceActionList.Actions[i] ...
I'm trying to translate a huge project from C++ to Delphi and I'm finalizing the translation. One of the things I left is the '\0' monster.
if (*asmcmd=='\0' || *asmcmd==';')
where asmcmd is char*.
I know that \0 marks the end of array type in C++, but I need to know it as a byte. Is it 0?
In other words, would the code below be the...
Hi,
I wrote a function in Delphi 2010 COM object. This function will return string using PChar. I tried to use the COM object in C# .net. So, i added the reference to the COM DLL in my C#. NET application.
I found out that the function is not visible in the References explorer list, whereas the other functions which i wrote earlier a...
I am having trouble implementing a HTTP server with indy 10 in delphi 2007.
I have set up a simple event handler for the CommandGet event.
When replying to data sent using the GET method I can parse the params and send XML data back with no problems. (see code below)
Download := ARequestInfo.Params.Values['dld'];
Config := ARe...
By using Delphi 5, can I call a function in web service which is developed in VB.Net and has some parameters and returns an XML? If yes, then what components will I use to call the web service function and the XML that will be returned by that function?
...
The well known Command pattern is used often when you want to implement a model with Undo/Redo capabilities. I am looking for a reference implementation (example) of a simple Delphi form that implements undo/redo.
From what I have seen, simple delphi data-entry forms with three Edit boxes, six memo boxes, and a few combo boxes and ot...
I'd like to start using generics and anonymous method, mainly to learn what that's all about and why I would want to use them.
Having Delphi 2009, I often read that generics and anonymous methods are not completely implemented or buggy, which was fixed in Delphi 2010.
I would like to avoid having to wonder if it's my fault or a bug in ...