home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!caen!destroyer!gumby!yale!yale.edu!ira.uka.de!Germany.EU.net!gmd.de!strobl
- From: strobl@gmd.de (Wolfgang Strobl)
- Subject: Re: Port from WIN3.X -> WIN32
- Message-ID: <strobl.724160213@gmd.de>
- Sender: news@gmd.de (USENET News)
- Nntp-Posting-Host: gmdzi
- Organization: GMD, Sankt Augustin, Germany
- References: <13266.2b2851b3@cpva.saic.com>
- Date: Sat, 12 Dec 1992 11:36:53 GMT
- Lines: 50
-
- In <13266.2b2851b3@cpva.saic.com> holmesme@cpva.saic.com writes:
-
- >Howdy,
- >General interest question.
- > A - How is the port between WIN3.x -> WIN32 ?
-
- There is a booklet in the NT PDK which describes this
- at length - it is too long to repeat it here.
-
- > 1 - What types of changes are required ?
-
- See above. It depends on what your WIN3.x program does.
-
- Most changes are of purely syntactic nature and can be
- done mechanically. There is a tool to find and annotate
- such places of a program contained in the SDK, called
- porttool.
-
- One example: the structure of the WM_COMMAND message
- has changed from 3.1 to 32, so you have to insert
- macros which extract the parts: notification code,
- control id and control handle. If you don't intent to
- retain downward source code compatibility, you can
- simply change the code by removing/adding HIWORD()
- /LOWORD() as necessary.
-
- > 2 - Any personal Experiences ??
-
- Well, getting a first, but fully functional version of Klotz
- to run under NT took less than an hour. Currently, Klotz is
- 4000 lines long, including comments, but excluding .h files.
-
- I would expect the porting time to be almost proportional
- to the size of the code. Of course, this doesn't take
- into account that the increase in complexity is more than
- linear. On the other hand, with a little bit of knowledge
- about the program a lot of conversion work could be fully
- automated, which pays of for larger programs, only.
-
- If I had a, say, 100.000 lines Windows program, I probably
- would start the conversion by writing a custom variant
- of porttool in Spitbol/SNOBOL. Small programs like the above
- are better ported manually, function by function. I didn't
- even use porttool on it.
-
- --
- o ( Wolfgang Strobl Wolfgang.Strobl@gmd.de (+49 2241) 14-2394
- /\ * GMD - Gesellschaft fuer Mathematik und Datenverarbeitung mbH
- _`\ `_<=== Schloss Birlinghoven, P.O. Box 1316, | #include
- __(_)/_(_)___.-._ D-5205 Sankt Augustin, Germany | <std.disclaimer.hpp>
-