Solved

Migrating delphi2 application to delphi4

Posted on 2000-02-15
13
331 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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
 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 152
delphi exception 7 64
Unique identifier on a terminal server (rdp) 4 54
how can i search if string exist in array ? 3 58
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

773 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