home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news.service.uci.edu!cerritos.edu!tanner
- From: tanner@cerritos.edu
- Newsgroups: comp.os.vms
- Subject: Re: decwindows to motif converter
- Message-ID: <1993Jan21.193752.7771@cerritos.edu>
- Date: 21 Jan 93 19:37:52 PST
- References: <1993Jan14.233618.12699@iscnvx.lmsc.lockheed.com> <1993Jan18.193253.1701@nidat.sub.org> <1993Jan20.214306.16560@funlwb.enet.dec.com>
- Organization: Cerritos College, Norwalk CA
- Lines: 33
-
- In article <1993Jan20.214306.16560@funlwb.enet.dec.com>, cameron@aussie.enet.dec.com writes:
- > I think Spike means a program that would convert C code or UIL code from the
- > older DECwindows Toolkit style to the Motif Toolkit style. When Motif accepted
- > Digital's Toolkit definitions, they changed the naming from DwtRoutine to
- > XmRoutine. I haven't seen a program that will do this yet, but I sure wish I
- > had - I needed it recently for a bit of my own coding.
-
- There is a suite of tools in DECW$EXAMPLES:, DECW$DXM_PORT_*.EXE which are
- called by DECW$DXM_PORT.COM.
-
- The first thing I did when I decided to convert DWProfile to
- DECwindows/Motif was to run the C and UIL files through this, hoping that
- all I'd need to do afterward would be to recompile. :-)
-
- What it does is map the Dwt syntax to the Xm syntax for all functions,
- types, etc. that have a straight conversion. This is much better than
- doing it by hand. It also flags those places that don't have a single
- replacement for you to investigate.
-
- You also need to review parts of your application when converting to
- DECwindows/Motif because the underlying Xlib went from X11R2 to X11R3
- (Motif 1.0) or X11R4 (Motif 1.1) [I think I have that right] and the
- functionality may have changed slightly.
-
- There are also functions where the syntax is a simple conversion, but the
- semantics have changed. For example, the DwtSTextSetString() maps straight
- to XmTextSetString(), except that when run, the cursor is left at the start
- of the string rather than the end.
-
- -Bruce
- --
- Bruce Tanner (310) 860-2451 x 596 Tanner@Cerritos.EDU
- Cerritos College Norwalk, CA DoD #0161 NOMAD #007
-