MKS Inc.
Register Software
Report a Problem
Supported Versions
Support Services
Support Policies
Update Policy

Request an Evaluation Copy
Buy Now
 
Tech Notes Tech Notes

Note: Effective July 1, 2007, MKS will no longer sell new licenses to distribute Wintif

Tech Note: Motif and Wintif

In MKS Toolkit 8.5, the version of Motif provided in MKS Toolkit for Enterprise Developers was updated to 2.1.30, the third maintenance release of Motif 2.1. This new version provides improved and additional functionality for those using the Motif libraries. This upgrade also effects the relationship between Motif and Wintif, an optional implementation of Motif that gives X applications a look that resembles traditional Windows applications.

Simultaneous Installation of Motif and Wintif

With versions of MKS Toolkit for Enterprise Developers before 8.5, you had the choice of installing either Motif or Wintif. With MKS Toolkit 8.5 and later, both Motif and Wintif are installed, so that you can switch libraries without having to re-install the product.

Because of this simultaneous installation, the locations of the Motif and Wintif libraries have changed. Before MKS Toolkit 8.5, the libraries xm.lib and mrm.lib were installed in %ROOTDIR%/lib and the headers were installed in %ROOTDIR%/include. These libraries and headers would be either the Motif or Wintif version, depending on the choice made during installation. Beginning with MKS Toolkit 8.5, the Motif libraries xm.lib and mrm.lib are installed in %ROOTDIR%/lib/motif and the headers are installed in %ROOTDIR%/include/motif. Similarly, the Wintif libraries xm.lib and mrm.lib are installed in %ROOTDIR%/lib/wintif and the headers are installed in %ROOTDIR%/include/wintif.

The script %ROOTDIR%/bin/ncenv.cmd (%ROOTDIR/bin/ncenv.bat on Windows 95/98/Me) is run each time you launch a command windows from the MKS Toolkit Start menu. This script sets up your environment for running Visual C++ and also sets the LIB and INCLUDE environment variables point to either the Motif or Wintif libraries and headers. By default, this is based on the choice you made during installation. Therefore, although you select Motif or Wintif during installation, this set-up lets you change between the two thereafter because both versions are installed.

Changing Between Motif and Wintif

While you could change between Motif and Wintif libraries by changing the settings of the LIB and INCLUDE in the ncenv.cmd scripts, this is not recommended. The two recommended methods for changing between Motif and Wintif are:

  • Permanently, by performing a maintenance install of MKS Toolkit from Add/Remove Programs in the Control Panel, and selecting the new library type. This can be done as often as necessary to switch between Motif and Wintif on the same machine.

  • Temporarily, from a shell prompt, by running:
        ncenv compiler_type Motif_Type
    
    where compiler_type is the major version of Visual Studio you are using (7 is the major version of VS.NET) and Motif_Type is either Motif or Wintif. For example:
       ncenv 6 Wintif
    
    or
       ncenv 7 Motif
    
    This change only affects the current shell session.

Incompatibilities Between Motif and Wintif

Beginning with release 8.5 of MKS Toolkit for Enterprise Developers, the version of Motif included is 2.1.30, that is, the third maintenance release of Motif 2.1. However, Wintif is built from version 1.2.4 of Motif and is therefore not for use with applications that depend on new behavior in Motif 2.x.


Managed with Integrity [ UNIX on Windows Home | Site Map | MKS Toolkit Products | Lex & Yacc | Sales | Services | News | Support | RSS ]
[ PC X Server | Secure Shell Solutions | Application Lifecycle Management Information | Feedback | mks.de | mks.com ]
© 1995 - 2008 MKS Inc. All Rights Reserved