Delphi 7 to Delphi 2009 conversionHello group,
What do I need to do to comile the following code in D2009.
Compiler error after the Else
E2010: Incompatible Types 'AnsiChar' and 'Char'
if isUnicode then
SearchHandle := FindFirstFilew( PWideChar( fn ), FindDataW )
else
SearchHandle := FindFirstFile( PAnsiChar( Ansistring( fn ) ),
FindDataA );
<<<<<compiler error in the above line >>>>>>>>>>>
Regards,
Bryan
> What do I need to do to comile the following code in D2009.
> Compiler error after the Else
> E2010: Incompati...
Converting Delphi 2007 Indy 10.2.3 to Delphi 2009 Indy 10.5.5 [Edit]Hello,
I am currently attempting to port over a Delphi 2007 project that uses Indy 10.2.3 (very successfully) to Delphi 2009 and Indy 10.5.5 (I just got the latest development build this morning). I think I am running into an encoding issue, but am not sure. Specifically, IDHTTP with SSL calls an old CGI and the CGI returns a .zip file and I then save it to the disk. In 2007 and before this worked perfectly. In 2009, it is not. Here is the examples of the 2 different results (though cut way short in the post) I
am getting back:
2007:
'PK'#3#4#$14#0#0#0#8#0'rLQ9žrPb€'#0...
Can delphi 2009 and delphi 7 be on the same computer?Can I install and run delphi 2009 and delphi 7 separately on the same
computer or will they interfer with each other?
I have delpi 7 already so do I need to choose a new folder (not c:\Borland)
when installing 2009?
Lorne Anderson wrote:
> Can I install and run delphi 2009 and delphi 7 separately on the same
> computer or will they interfer with each other?
>
> I have delpi 7 already so do I need to choose a new folder (not c:\Borland)
> when installing 2009?
It works fine. You usually want to install the older version first.
As for folders, the root folde...
Question about Delphi 2009 vs Delphi 7Hi,
I was wondering if any of you can point me to a URLs that show the most
important improvements between these versions of Delphi.
The objective is convincing the powers-that-pay-the-bills that moving to
D2009 (that we'd have to purchase) is a better idea than moving to D7 (for
which we have licenses).
Fire at will!
--
Saluti,
Alessandro Federici
-------------------------------
"I have been through some terrible things in my life, some of which actually
happened." (Mark Twain)
Alessandro Federici wrote:
> Hi,
> I was wondering if any of yo...
Delphi 7.0 code convert to delphi XE ...Hello All,
I create an application using Web Server Application then CGI stand alone... In WebModule I add ModuleController component and IWPageProcedure...
Below is my code in Delphi 7.0, this is how to call another units in webmodule...
....
....
procedure TWebModule1.proMainGetForm(ASender: TIWPageProducer; AWebApplication: TIWApplication; var VForm: TIWPageForm);
begin
VForm := TfrmMain.Create(AWebApplication);
end;
procedure TWebModule1.proLogInGetForm(ASender: TIWPageProducer; AWebApplication: TIWApplication; var VForm: TIWPageForm);
begin
VForm := TfrmLogIn.Create(AWebA...
Code works in Delphi 7 but not in Delphi 2010 [Edit]hello,
i have a procedure that open's a file by passing the file name as the parameter to the executable.
something like this
{code}
C : \ P r o g r a m F i l e s \ Da c k e r \ D r a c k e r . e x e " G : \ D E l p h i 7 \ D e l p h i 7 A p p _ l o g . t "
{code}
The source code is
{code}
procedure OpenFileWithExe
var
hReg: HKEY;
Ret: Longint;
RegDataType, RegDataSize: DWORD;
CmdLine: array [0..560] of Char;
Len: Integer;
SInfo: TStartupInfo;
PInfo: TProcessInformation;
begin
Ret := windows.RegOpenKeyEx(HKEY_CURRENT_USER,
...
Delphi 7 to Delphi XE: TBlobField to XML [Edit]Hi,
I'm migrating a Delphi7 application to Delphi XE.
I'm using a TClientDataSet to communicate, by using a XML frame, with my server.
In this TClientDataSet I'm using a TBlobField which is an array of 384 byte.
The blobField is allocate by a code like this :
{code}
myStream : TStream;
myStream := aClientDataSet.CreateBlobStream(myBlobField, bmwrite);
vResult := myStream.Write(ArrayOf384Byte[0], length(ArrayOf384Byte)); //vResult = 384 => GooD !
(...)
{code}
For communicate with the server, we have to decode the Blobfield in XML before to sending it.
We have...
Is possible to install delphi 7 and delphi 2009 upgrade?I have delphi 7 interprise installed on my PC. Our company bought a delphi 2009 professional (upgrade). All of our projects now are made in delphi 7. We don't have time to move those projects to delphi 2009. Now, we are planning to create a new project using delphi 2009. Is it possible to install delphi 2009 in different windows profile without affecting delphi 7 projects?
Edwin Aceron wrote:
> I have delphi 7 interprise installed on my PC. Our company bought a
> delphi 2009 professional (upgrade). All of our projects now are made
> in delphi 7. We don't have time to move...
Delphi 4 to Delphi 2009Hello,
Thanks to all who answered my previous question. That was a great help.
And atlast our client agreed to upgrade our delphi version from 4 to Delphi 2009. *Sigh*.
But before that, I need to give the estimation and cost regarding the migration to delphi 2009.
Can anyone tell me is there any tool to migrate from delphi 4 to delphi 2009 or just I need to compile our Delphi 4 application in Delphi 2009.
I have read from the delphi 2009 feature matrix that Delphi 1 through Delphi 2007 import is possible in delphi 2009. But i am not that sure considering the size of our application.
...
Delphi 2007 to Delphi 7I've written a class in Delphi 2007 that is not supported in Delphi 7. What
would be the best way to achive what I've done in Delphi 2007 in Delphi 7?
Thanks,
Tom
type BondConstants = class
{ Bond Types }
type BondType = record
const
TREASURY = 3;
AGENCY = 0;
CORP = 1;
MUNI = 2;
SBA = 5;
MBS = 4;
CMO = 6;
end;
{ Day Count Methods }
type DayCount = record
const
ACTUAL_360 = 2;
ACTUAL_365 = 1;
ACTUAL_ACTUAL = 1;
d30_360 = 0;
...
Delphi 7 to Delphi XEHave been using Delphi 7 for many moons ( have got later versions but never
upgraded to )
My first problem is:
Component Palette. in XE it is a small toolbar docked in top right
in Delphi 7 it gives a large view of all the components.
I am struggling to be able to cope/access my components.in Delphi XE.
Can I make the component pallette tool bar the same size as Delphi 7, or is
there a fast way to view/choose all available components in XE, that I have
not spotted yet?
Kind Regards,
Robert.
Hi,
What I know is that in Delphi 2010 and XE you can choose
between t...
Delphi 7 to Delphi XE2Hi,
Still using that old workhorse, Delphi7, but am going to the conference in
London hosted by Embarcadero on Delphi XE2.
Although I would like to "move with the times" and am keen to get the
UNICODE and 64-bit support offered by the latest IDEs, I confess to being
more than a little scared about all the UNICODE/String/AnsiString and 32/64
bit issues I'm probably going to fall over. Anyone recently upgraded from
Delphi7 to one of the latest Delphi IDEs?
Thanks,
Alain
On 03/02/2012 08:55, Alain Dekker wrote:
> Still using that old workhorse, Delphi7, but...
Delphi 5 To Delphi 2009I upgraded to Delphi 2009 from D5. The install says I can install Delphi and/or C++. Delphi installed OK but I see nothing of C++. What am I missing or does my upgrade not include C++? Thanks
It depends on what you bought. If you bought Delphi 2009 only, that's
what you get. If you bought Delphi 2009 and C++ Builder 2009 you get
both. My guess is you got Delphi 2009 only. The simplest way to verify
is look your invoice - it should say I would think. You could also go to
members.embarcadero.com, login, then click on my registered products.
There will be a textual description of...
SEPA components for Delphi with Source Code (Delphi 5Hi all,
in the european union change next year the Bankingformat to the SEPA Format.
All peoples and companies must change the bankingssoftware and the costumer data form acountnummers in the new IBAN and BIC numbers.
See:
http://www.arma-it.de/shop/artikelueber.php?wgruppeid=211&wgruppe_offen=211
Functions:
- generate SEPA XML'S
- Calc IBAN
- BIC Database (DE,AT and CH)
Questions:
vertrieb@arma-it.de
PS:
Bankinssoftware for Develpoers (Germany only)
http://www.arma-it.de/shop/artikelueber.php?wgruppeid=212&wgruppe_offen=212
El 26/10/13 21:38, A...