I'm porting some very old code from Delph7 to Delphi2010 with a few changes as possible to the existing code base for the usual reasons.
First: the good news for anyone who hasn't jumped yet: it's not as daunting as it may look! I'm actually pleased (& surprised) at how easy 1,000,000+ lines of code have moved across. And what a relief ...
Hi
Using the following code in Delphi 2007:
procedure TfrmTest.PaintBox1Paint(Sender: TObject);
const
Rect_Size = 10;
begin
PaintBox1.Canvas.Brush.Color := clYellow;
PaintBox1.Canvas.FillRect(Rect(0, 0, PaintBox1.width, PaintBox1.height));
PaintBox1.Canvas.Brush.Color := clRed;
DrawARect(PaintBox1.Canvas, 0, 0, Rect_Size, R...
hello friends,
my project involves BDS 2006, mysql and rave reports, I getting a error whenever I try to open a Report.
Error! could not open data connection "report name". Aborting report.
any help will be highly appreciated.
thanks
...
Are gnugettext and dxgettext 2 totally different tools?
...
how do i detect internet idle time(time since i used internet) using delphi
something like:
begin
{ idle time detection code goes here}
showmessage('you have not browsed any websites or downloaded/uploaded
for over xyz seconds');
end;
thanks in advance
...
Trying to connect to sql server 2005 with delphi 2010 gives me the following error after configuring the data explorer:
'Borland.data.TDBXError: DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, or wrong version'
I know there is a work around by installing the sql server 2008 man...
I am writing a Delphi application that allows a user to connect to an AIX system to perform various tasks.
I need to allow a user to sign on to the AIX system before they are allowed to do anything, so I need a method by which their username/password can be authenticated.
I had initially thought that I could display a sign on screen wh...
I am considering using DropBox to sync user data with a delphi app. It would seem to solve lots of problems regarding security, permissions, etc... I see that there are some API samples for C#, python, etc.. Has anyone done it with Delphi, and if so, are there samples available?
...
I started with an ISAPI DLL which I created with Delphi 2009, This module perform as expected when runnining in ISS 5.1 on Windows XP. This same module when hosted using Apache 2.2.15 and mod_isapi does not function correctly. To eliminate the possibility that the mod_isapi has some flaw, an Apache Shared Object module of the same servic...
I'm doing some work with code generation, and one of the things I need to do is create a function call where one of the parameters is a function call, like so:
result := Func1(x, y, Func2(a, b, c));
TStringList.CommaText is very useful for generating the parameter lists, but when I traverse the tree to build the outer function call, w...
I've recently experimented extensively with interfaces and D2010 RTTI. I don't know at runtime the actual type of the interface; although I will have access to it's qualified name using a string.
Consider the following:
program rtti_sb_1;
{$APPTYPE CONSOLE}
uses
SysUtils, Rtti, TypInfo, mynamespace in 'mynamespace.pas';
var
ctx: ...
Most Delphi developers have a list of Delphi components they wouldn't live without. Not including anything that ships with Delphi (standard VCL or included third-party software like Rave or Indy), what are the components you can't live without, be they commercial or open-source?
One component or product name per answer, please. Please d...
I have a piece of SQL that I want to translate to OCL. I'm not good at SQL so I want to increase maintainability by this. We are using Interbase 2009, Delphi 2007 with Bold and modeldriven development. Now my hope is that someone here both speaks good SQL and OCL :-)
The original SQL:
Select Bold_Id, MessageId, ScaniaId, MessageType, Me...
I have been writing a Delphi library for StackApps API.
I have run into a problem with Indy. I am using the version that ships with Delphi 2010.
If you pass invalid parameters to one of the StackApps API it will return a HTTP Error Code 400 and then in the response it will contain a JSON object with more details.
By visiting http://a...
Hi everyone
I have developped an app on 22inch monitor at its max resolution
when I run this on a laptop with a different ratio and a smaller resolution well the form is too big - to be expected
but no scroll bar appear automaticaly to see the whole thing if needed
I have tempered with all options but could not figure it out
I have tried...
hi
What options/properties should use to show a main from scrolbars when I want to?
or always visible in Delphi 2010
The help is as too often useless
thanks
Pw
...
Hi!
D6 Prof.
Because of Z-Order problem I created a new form. I want to register this custom form in Delphi, to I can use it as normal form, and to I can replace my forms with this - to avoid Z-Order problems.
But I don't know, how to do it.
I created the class, but how to register?
How to force Delphi to show it under "New..." menu...
Hi,
I am working on converting the EMF file to RTF file.
I am having a problem on converting the (x,y) coordinates (in EMR_LINETO record) to twips.
So please post the conversion factor.
...
Delphi developers has several tools (several alternatives to ASP.NET) for building web applications.
While No.1 framework is Intraweb, there is a lot of interest around ExtJS, that has 2 incarnations:
1) the opensource ExtPascal
2) the closedsource Raudus
Now the products are different, Raudus never supports the latest ExtJS version (w...
I'm convinced this must be a common problem, but I can't seem to find a simple solution...
I want to use a combobox control with name value pairs as the items. ComboBox takes TStrings as its items so that should be fine.
Unfortunately the drawing method on a combobox draws Items[i] so you get Name=Value in the box.
I'd like the value ...