Solved

Migrating delphi2 application to delphi4

Posted on 2000-02-15
13
328 Views
Last Modified: 2010-05-18
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.
0
Comment
Question by:shenoyvaib
13 Comments
 

Author Comment

by:shenoyvaib
ID: 2522993
I m in requirement of solution at the earliest
0
 
LVL 2

Expert Comment

by:florisb
ID: 2523069
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.
0
 
LVL 2

Expert Comment

by:florisb
ID: 2523087
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.
0
 
LVL 2

Expert Comment

by:florisb
ID: 2523095
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.
0
 
LVL 10

Expert Comment

by:Jacco
ID: 2523269
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
0
 
LVL 17

Expert Comment

by:inthe
ID: 2524078
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 ..
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Expert Comment

by:Michael_Benjamin_Perez
ID: 2524349
Go Floris !

;) Mick
0
 

Author Comment

by:shenoyvaib
ID: 2526843
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.
0
 

Author Comment

by:shenoyvaib
ID: 2526846
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.
0
 
LVL 2

Accepted Solution

by:
florisb earned 200 total points
ID: 2527747
Form is not created automatically anymore, after converting project to ActiveX, something like:

application.CreateForm(TResultaten, Resultaten);
Resultaten.ShowModal;
Resultaten.release;

Floris.
0
 

Author Comment

by:shenoyvaib
ID: 2529837
thanks for the answer
0
 
LVL 2

Expert Comment

by:florisb
ID: 2530344
your welcome,

F.
0
 

Author Comment

by:shenoyvaib
ID: 2531263
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.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now