Link to home
Start Free TrialLog in
Avatar of shenoyvaib
shenoyvaib

asked on

Migrating delphi2 application to delphi4

I want to port my delphi2 application to delphi4. please advise me as to how to go about it.
i have a serious problem with quickReports porting.
Also let me know the easiest(with out much design change) way to give a web face to my delphi application.
Avatar of shenoyvaib
shenoyvaib

ASKER

I m in requirement of solution at the earliest
nice trick: make the form of your application the childform of an ActiveForm you create by the Wizard:

Do:
File | CloseAll.
File | New.
ActiveForm on tab ActiveX.
Object Inspector: events | OnCreate.

Add this code:
ChildForm := TForm1.create(self);
ChildForm.Parent := Self;
ChildForm.Align := AlClient;
ChildForm.BorderStyle := bsNone;
ChildForm.Visible := true;
Do:
Project | Add to project and add: reference to unit/form you want to web deploy. (see code; change form1 here for the name of your form offcourse)


uses clause ActiveForm add unit1.
TactiveForm1 class, add:
type
TActiveForm1 = class …

public
ChildForm: TForm1; <-- this line

end;

Compile, chose Project | Web Deployment Options and set dirs.

If your program uses databases: check BDEINST on Delphi cd.

Project | Web Deploy -> ActiveForm in html file.

Floris.
Ah, also:
(I had this ready...)

Project | Web Deploy Options, add f.e.:
target dir: E:\Dev\webdelpoy\deployTo\
target url: E:/Dev/webdelpoy/deployTo/testWebDelpoyProj1.htm/
htmldir: E:\Dev\webdelpoy\deployTo\

Click on deploy additional files!

Run | Parameters:
Host application: C:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE
Parameters: E:/Dev/webdelpoy/deployTo/testWebDelpoyProj1.htm/

And now you can debug your ActiveXForm very nicely!


And... ...never forget:
Run | Register ActiveX Server!

Greetings,
Floris.
So only points for your first question?

Errrr, i can't help you with that. What is porting exactly (just wanna know)? I just load Delphi 2-4 projects in Delphi 5 and rebuild... ...some changes are sometimes needed, never had a big problem with it.

Floris.
You can use quick report 2.0k with delphi 4. You have to remove the QuickReport that installed with delphi and install 2.0k. (Look at their WEB-site)

standard (free):

http://www.qusoft.no/scripts/download.dll/getfile?Filename=QR20K_4.EXE

professional (licensed users):

http://www.qusoft.no/scripts/download.dll/getfile?Filename=QR20KP_4.EXE

Regards Jacco
Hello,
the biggest changes i ever have for converting is most integer vars need to be changed to cardinal ..
floris has gave best solution to "webface" problem ..
Go Floris !

;) Mick
I m able to one form. But application involves nummerous forms which are called modally. How do i call other modal forms from one form.
I m able to web enable one form. But my application involves nummerous forms which are called modally. How do i call other modal forms from one form.
ASKER CERTIFIED SOLUTION
Avatar of florisb
florisb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for the answer
your welcome,

F.
I want to my application window to be active on the web browser window. I should restrict switching of windows between web browser window and my application window. please advise as how i can do this.