home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21664 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.1 KB

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