home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!pf@bilbo.bio.purdue.edu
- From: pf@bilbo.bio.purdue.edu (Paul Furbacher)
- Subject: Re: Need help in translating programs from TP to TPW
- Message-ID: <Bzt7v2.Fqv@mentor.cc.purdue.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University
- References: <78799@hydra.gatech.EDU>
- Distribution: comp.lang.pascal
- Date: Fri, 25 Dec 1992 10:01:49 GMT
- Lines: 46
-
- In article <78799@hydra.gatech.EDU>, gt2768b@prism.gatech.EDU (JENGLUNG LIN) writes:
- >
- > I received a project to transfer a program written in TP5.5 to TPW. The program
- > cannot be compiled in TPW because it uses several tpu's from TP5.5 such as
- > OpString, OpDos, OpCrt, etc.
- >
- > Can someone help me to solve this problem? It would be a great help.
-
- The "Op" in OpString, etc., indicates that the software
- project which you have inerited was written using
- the product, Object Professional, from TurboPower, Inc.
-
- Unless you have those units and their source (which comes
- with the package), you won't even be able to compile the
- project in a more recent version of Turbo Pascal or
- Borland Pascal. Even with the source, you'll not get
- anywhere if you try to recompile the project into a true
- Windows app using TPW or Borland Pascal, BPW.
-
- I suspect that it's time to look at the program afresh.
- You'll see ways in which the overall program's
- structure and interface can be improved by
- redesigning in Windows from the ground up.
- The "algorithmic", or non-interface related part
- doesn't need any alteration, *if* (and this is a big IF)
- the interface code (keyboard, screen and other i/o) was
- completely encapsulated apart from the former.
-
- If there is good encapsulation, then design the Windows
- app's interface with the Resource Workshop. See if
- you can get ahold of a Windows application generator,
- such as ProtoView (there are others around).
- Upgrading to BP7 will get you some additioal tools as well
- which can aid in Windows development.
-
- You're saying, I don't have the time to start anew.
- Perhaps it's time to negotiate with those who want the
- project to be done in Windows. The real question are:
- Do they *need* a Windows app? What prevents them from
- getting real work done with the DOS app? There are
- lots of trade-offs in this and Windows is not always
- the clear winner.
-
-
- PF
-
-