Delphi is a language for rapid development of native Windows, OS X and iOS applications through use of Object Oriented Pascal. The name also refers to the Delphi IDE, which is used to help edit and debug Delphi projects more efficiently.
0
votes
0answers
24 views
Suggestions for Improvement, handling MouseEnter / MouseLeave Events for dynamically created objects.
Test version of my code for handling individual mouseenter / mouseleave events for objects created dynamically. The code emulates a seating cart for a bus, as you mouse over the objects it will ...
1
vote
1answer
134 views
Performance Tuning Base64 encoding
I've been trying to get a relatively optimized version of base64 encoding that works against files. However, I've made several attempts and haven't gotten anything much faster than what I have here. ...
2
votes
0answers
269 views
Where is the memory leak in this Delphi code? [closed]
I tried to ask this on Stack Overflow, but it got closed. Someone recommended I ask her, so ...
This is not a code review about style or maintainability - what you will see is less than 5% of my app, ...
3
votes
1answer
157 views
Just compare if is conversion correct
With the help of some users here, I finally terminated the conversion of this code from C:
#include <windows.h>
#include <stdio.h>
#define IS_IN_SEARCH(mb, offset) ...
4
votes
0answers
351 views
Fastest function for TCanvas.CopyRect
I want to scale some sub images from an original image.
I need to use TCanvas.CopyRect function for about 5,000 times and it is very slow (from a simple BMP image).
Do you know any other method ...
1
vote
0answers
78 views
Internet Connectivty and Resolve host
Well this HostResolve procedure runs on thread separately to not interrupt other working functions. i would like to ask here if this procedure correctly written or not any recommendation and ...
1
vote
0answers
128 views
How to adjust TAviWriter to UniCode [closed]
My question is based on an earlier question on stackoverflow. I want to convert bitmaps to video and stumbled upon the TAviWriter component. The code is simple, just what I look for, but quite old. ...
3
votes
2answers
172 views
Defining a new Delphi Class with built-in Connection. Is TSQLConnection a usable option?
Using Delphi XE2, I'm wondering if it would be usable to define a base object something like below.
Class is prone to be used in multiple projects.
I've chosen TSQLConnection as my starting point - ...
2
votes
2answers
358 views
Is Marshalling converters/reverters via polymorphism realistic?
First off - this is a TOTAL COPY from stackoverflow - where I was adviced to try this forum :-) so here goes:
Well now I'm almost at the end of my journey - expanding my base units :-)
I'm currently ...
2
votes
1answer
521 views
Please help me fix my Delphi 7 code [Threading issues]
My code has to do download source code of page and parse it for URLs.
I want it to ask for number which is increased inside the critical section.
So my problem happens on thread termination.
Main ...
2
votes
1answer
233 views
Asking for peer review of theses innosetup snippets
To fullfil a promise, I cooked the following script :
[Code]
var
BDS: string; // No trailing backslash path
BDSCOMMONDIR: string; // No trailing backslash path
BDSPROJECTSDIR: string; // No ...
10
votes
3answers
502 views
Fastest Parameter Passing in delphi 7?
I have a function that accepts a big amount of data as a parameter (sometimes 1 megabyte) I was thinking which would be the fastest way to pass that data, dunno if I got this right, but here is what I ...
4
votes
5answers
466 views
Nested IF code in GUI Controls
I'm writing GUI controls and there are many places where there are many nested IFs checking for some result. Example goes:
function TMyObject.GetCursor: TCursor;
begin
if CanDragX then
begin
...