Hi,
what would be best way to handle simple text styles like bbcode allowing bold italic etc inside of the text?
what I did is dividing the text into parts, each part has assigned style and then I textout each piece, starting from Rect.Left + Canvas.TextWidth(Texts[i-1]). This however is probably quite slow, moreover I have no idea ho...
I wonder what sort of operator overloads are possible (and with what version of Delphi)?
Thanks to Hallvard's great write-up on operator overloading, I know of :
Add(Left, Right: Type): Type (for the '+' operator)
Subtract(Left, Right: Type): Type (for the '-' operator)
Multiply(Left, Right: Type): Type (for the '*' operator)
Divide(L...
Hi
In my application I need to copy over 1000 small files
Here is the code I am using but it is VERY SLOW
Is there a better way of doing this ?
procedure Tdatafeeds.RestotreTodaysFiles;
var
SearchRec: TSearchRec;
FromFn, ToFn: string;
Begin
if DirectoryExists(BackupPath1) then
begin
try
if FindFirst(BackupPa...
I'm using Delphi 2009 and the lastest Indy 10 from svn to send e-mails using SMTP, but it doesn't work with gmail (Google Apps hosted domain). When I try to send an e-mail I get "Must issue a STARTTLS command first".
I tried googling about it but I found several forums and several solutions, but they all just bashed some code or just sa...
I am trying to debug an application in Delphi 2007 on a Vista machine. The application was originally written for XP so it must be run with administrator privileges. I know that I could put some information into the manifest or update the code but I am looking for a quick fix that can be used in all my projects.
Does anyone know if ...
Hello,
I've been asked to develop a new application that will work along side the existing one. Both application will wait for a barcode reader input. I don't want our operator to scan a barcode twice: once for the existing application (16bit - clipper, no sources) and once for the new application. To solves this issue I've decided to u...
Simple situation. I'm trying to write my own blog with a minor twist. Part of the blog will be controlled from a client application instead of a web interface. Basically, I'm still in the design phase and haven't written a single line of code. But I'm trying to combine several techniques into an interesting exercise in software developme...
Is it possible to unmangle names like these in Delphi?
If so, where do I get more information?
Example of an error message where it cannot find a certain entry in the dbrtl100.bpl
I want to know which exact function it cannot find (unit, class, name, parameters, etc).
---------------------------
myApp.exe - Entry Point Not Found
------...
Sorry for my bad English...
Using Delphi 7 I want to create a dialog window to show that something is happening in my application when i have to run slow processes.
My idea was to do something that i can use like:
with TMyDialog.Create do
begin
//call the time consuming method here
Free;
end;
When i create the dialog, a window wit...
Hi,
I'm trying to implement a Fitnesse Slim server for delphi, but have some problems with the communication.
Fitnesse will start my process, and give me a portnumber as a commandline argument.
Then I'm supposed to create a socket at the given portnumber, and Fitnesse will connect to that port.
I'm using a TTcpServer for the job:
T...
Hi
I am using the following code to delete a large number of files
function FastDelete(const fromDir: string): Boolean;
var
fos: TSHFileOpStruct;
begin
ZeroMemory(@fos, SizeOf(fos));
with fos do
begin
wFunc := FO_DELETE;
fFlags := FOF_FILESONLY or
FOF_NOCONFIRMATION or
FOF_NO_CONNECTED_ELEM...
I've written a little ruby script that lets me send emails by calling it along with some command line parameters.
At the command line, this works:
ruby.exe mail_it.rb fromaddr="[email protected]" tolist="[email protected]"
But try as I may, I can't get it to work in Delphi 2007 for Win32. Here's the latest attempt:
procedure TF...
I'm having trouble deploying my delphi application. It uses dbxpress to access mysql 5.1 database. When i run the application from another computer, an error occurs. I've already included the midaslib.dll in my application and copied the dbxmys.dll and libmysql.dll in the same folder as my application.
Hope someone can help.
...
I have an old comm unit that uses WinTypes,WinProcs. As i understand these were merged too the Windows unit.
Are there similar functions in the Windows unit?
...
I've narrowed a problem I have drawing on TImage.Canvas in Delphi 2009 down to the following reproducible case:
Given: a form, a TImage, TLabel and TButton on it. The TImage is anchored to all four edges so that resizing the form will resize the TImage. What I want to be able to do is draw on the maximal area of Image1 available to me a...
I plan to run specific application commands every X days using Task Scheduler. Do I have to write support for command-line parameters first, so Scheduler can execute it?
If so, does anyone know any good command-parameter components?
...
Hi dudes,
I have this array:
const / var
_Data : array [0..4] of array [0..3] of Double =
((0,0,0,0),
(0,0,1,1),
(1,0,1,0),
(1,1,0,0),
(1,1,1,1));
I wanna pass it as param value for this procedure:
procedure NN.NetTraining(Data: TDoubleMatrix);
Where:
TDoubleArray = array of Double;
TDoubleMatri...
I created a very simple Delphi 2010 CGI web service and am able to get the exact same problem on Delphi 2007.
My invokable interface looks like this:
ISimpleTest = interface(IInvokable)
['{4E318A9A-D361-4A18-A963-EE6D7F70E9C5}']
function SayHello(const S: string; N: Integer): string; stdcall;
end;
And the function is implemented in...
Internal Error URW1111 on delphi 2010 compiler. Where is the problem?
...
Hi all,
I recently installed Zeos 6.6 stable on BDS2006 for both the Delphi and C++ personalities.
In order to do so, and since Zeos is written in Delphi, I checked the "Generate all C++ Builder files" when building the packages.
The problem I found was that, somehow, not all necessary .DCUs were generated during the building of the...