Make Compatible
   HOME

TheInfoList



OR:

Make Compatible is a program developed by
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
that is included with
Windows 9x Windows 9x is a generic term referring to a line of discontinued Microsoft Windows operating systems released from 1995 to 2000 and supported until 2006, which were based on the kernel introduced in Windows 95 and modified in succeeding version ...
operating system An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ...
s. It changes per-program system settings in Windows to allow
Windows 3.1 Windows 3.1 is a major release of Microsoft Windows. It was released to manufacturing on April 6, 1992, as a successor to Windows 3.0. Like its predecessors, the Windows 3.1 series run as a shell on top of MS-DOS; it was the last Windows 1 ...
programs that are tailored specifically to that platform to execute under newer versions. The name of the program image file for Make Compatible is , and it is stored in the directory.


Options

When it is invoked, one can choose the name of the Windows 3.1 application program image file using the "Choose Program" option on the "File" menu. After the program image file is chosen, Make Compatible by default displays a list of five options that can be set to alter the behaviour of Windows for that program when it is executed: *Don't spool to enhanced meta files *Give application more stack space *Lie about printer device mode size *Lie about Windows version number *Windows 3.1-style controls An advanced options mode, selectable via the "Advanced Options" selection on the "File" menu presents a longer list of options, allowing finer control of Windows 3.1 emulation if the particular application requires it.


Compatibility bits

Each of the options is recorded in a system database of so-called "compatibility bits". This is a database of 1-bit flags, one for each of the options displayed by Make Compatible. This database already existed in earlier versions of Windows. In Windows 3.1, the database is stored in the section of , with entries such as: : ompatibilityACAD=0x8000 AMIPRO=0x04000010 Each line names an application program, and gives a hexadecimal numeric constant to associate with that program. The hexadecimal numeric constant encodes the compatibility bitflags for that particular application, that Windows applies when the application is executed. Make Compatible merely provides a
graphical user interface A graphical user interface, or GUI, is a form of user interface that allows user (computing), users to human–computer interaction, interact with electronic devices through Graphics, graphical icon (computing), icons and visual indicators such ...
for editing these flags in an easy way, rather than editing manually, with a text editor. It allows one to set and unset individual flags without having to know their numeric values. The compatibility bitflags settable in are not documented in the file that ships with Windows 3.1, or in the ''Microsoft Windows 3.1 Resource Kit'' published by Microsoft. They are listed as a simple set of defined constants (with names beginning "GACF_" for "GetAppCompatFlags"), without explanation, in the
header file An include directive instructs a text file processor to replace the directive text with the content of a specified file. The act of including may be logical in nature. The processor may simply process the include file content at the location of ...
that is shipped with the Microsoft Windows 3.1 Device driver Development Kit. In Windows 3.1, the compatibility flags that are in effect for any given task in the kernel's Task Database are readable via the undocumented GetAppCompatFlags() function that is exported from the module.


Advanced mode flags

The flags are documented in Microsoft KnowledgeBase article #82860. They correspond to the "advanced mode" flags that are settable by Make Compatible's "Advanced Options" menu: ;30 average width metrics:This is bit #19 of the compatibility bits word, with hexadecimal value 0x80000, known by the symbolic name GACF_30AVGWIDTH in . This flag causes Windows to re-scale all fonts by a factor of 7/8 when calculating their average character widths. The reason for this is that one particular Windows 3.0 application,
TurboTax TurboTax is a software package for preparation of American and Canadian income tax returns, produced by Intuit. TurboTax is a market leader in its product segment, competing with H&R Block Tax Software and TaxAct. TurboTax was developed by M ...
, hard-coded the values that it was using for such size calculations, which failed to work correctly with the new
TrueType TrueType is an Computer font#Outline fonts, outline font standardization, standard developed by Apple Inc., Apple in the late 1980s as a competitor to Adobe Inc., Adobe's PostScript fonts#Type 1, Type 1 fonts used in PostScript. It has become the ...
-compatible font average width calculation method employed by Windows 3.1. This prevented people from using TurboTax to print their
income tax An income tax is a tax imposed on individuals or entities (taxpayers) in respect of the income or profits earned by them (commonly called taxable income). Income tax generally is computed as the product of a tax rate times the taxable income. Tax ...
return forms on
PostScript PostScript (PS) is a page description language and dynamically typed, stack-based programming language. It is most commonly used in the electronic publishing and desktop publishing realm, but as a Turing complete programming language, it c ...
printers. ;Always send NC_Paint:This is bit #6 of the compatibility bits word, with hexadecimal value 0x40, known by the symbolic name GACF_ALWAYSSENDNCPAINT in . This flag forces any call to SetWindowPos() to cause the sending of WM_NCPAINT message to all child windows. This is the Windows 3.0 behaviour. In Windows 3.1, the behaviour was changed so that the window message is only sent to those windows that need their non-client areas to be repainted. Some Windows 3.0 applications, however, relied upon always receiving this message, to determine whether child windows needed repositioning. ;Don't enum device fonts:This is bit #14 of the compatibility bits word, with hexadecimal value 0x2000, known by the symbolic name GACF_ENUMTTNOTDEVICE in . This flag causes Windows 3.1 to turn the DEVICE_FONTTYPE flag off in particular circumstances when an application that is wanting to print enumerates fonts. The particular circumstances are when the target printer is not either a
dot matrix printer Dot matrix printing, sometimes called impact matrix printing, is a computer printing process in which ink is applied to a surface using a relatively low-resolution dot matrix for layout. Dot matrix printers are a type of impact printer that p ...
or a PostScript printer, and the fonts are TrueType fonts that are not resident in the printer itself. In such circumstances, some applications (including
PageMaker Aldus PageMaker (later Adobe PageMaker) is a desktop publishing computer program introduced in 1985 by the Aldus Corporation on the Apple Macintosh. The combination of the Macintosh's graphical user interface, PageMaker publishing software, and t ...
and MGXDraw) misinterpret the flag and believe the font to be device-resident. (TrueType fonts can be uploaded by Windows to printers, and need not be resident on the device itself to be usable.) They then query the printer to see what sizes of the font it supports, and when that fails (because the printer doesn't know about the font until it is uploaded), they incorrectly assume that the font cannot be resized. Setting the DEVICE_FONTTYPE flag to false in such situations prevents the applications from going wrong, and that is what this compatibility bitflag does. ;Don't send calcsize WM_MOVE:This is bit #17 of the compatibility bits word, with hexadecimal value 0x20000, known by the symbolic name GACF_NCCALCSIZEONMOVE in . This flag forces the WM_NCCALCSIZE message to be sent to a window that is being moved or resized. This is the Windows 3.0 behaviour. In Windows 3.1, the behaviour was changed so that the window message is only sent to those windows that were being resized. It was not sent if the window was merely moved. Some Windows 3.0 applications, however, such as
Lotus Notes HCL Notes (formerly Lotus Notes then IBM Notes) is a proprietary collaborative software platform for Unix ( AIX), IBM i, Windows, Linux, and macOS, sold by HCLTech. The client application is called Notes while the server component is branded ...
for example, relied upon always receiving this message. ;Enum Helv and Times Roman fonts:This is bit #12 of the compatibility bits word, with hexadecimal value 0x1000, known by the symbolic name GACF_ENUMHELVNTMSRMN in . This flag works around a problem with applications that refused to work properly unless fonts with the exact names "Helv" and "Tms Rmn" were listed as present on the system by the Windows font enumeration API. The names are trademarks of Linotype company for particular fonts,
Helvetica Helvetica, also known by its original name Neue Haas Grotesk, is a widely-used sans-serif typeface developed in 1957 by Swiss typeface designer Max Miedinger and Eduard Hoffmann. Helvetica is a neo-grotesque design, one influenced by the f ...
and Times Roman, and since Microsoft didn't ship those Linotype fonts with Windows 3.1, it could not enumerate them as present. This flag causes Windows to enumerate the "MS Sans Serif" and "MS Serif" fonts under the names "Helv" and "Tms Rmn", for compatibility with the applications that don't work without those exact names being used. ;Force extra windows words:This is bit #8 of the compatibility bits word, with hexadecimal value 0x100, known by the symbolic name GACF_MOREEXTRAWNDWORDS in . This flag works around a problem with applications that assumed the existence of window words (extra items of data associated by Windows with GUI windows) when they had not in fact informed Windows that extra window words were required. Windows 3.1, unlike Windows 3.0, bounds checks all uses of extra window words, and applications that assumed that they could use more space than they had asked for would thus fail. For applications run with this flag set, Windows 3.1 silently increased the total number of words requested by the application by an extra 4 bytes. ;Force printer text to new band:This is bit #1 of the compatibility bits word, with hexadecimal value 0x2, known by the symbolic name GACF_FORCETEXTBAND in . This flag causes Windows 3.1 to always use two bands when printing, the first for graphics and the second for text. Normally Windows 3.1 tries to print both in a single band. But applications such as WordPerfect assumed that a second band would always exist, and would always be where the text was, as had been the case in Windows 3.0. Freelance Graphics had a similar problem. ;Force TT fonts to graphics band:This is bit #15 of the compatibility bits word, with hexadecimal value 0x8000, known by the symbolic name GACF_FORCETTGRAPHICS in . This flag was to work around a problem with Freelance Graphics, where it wouldn't print using TrueType fonts unless they were printed as graphics. ;Global hooks only called for Win16 apps: ;Ignore discardable segment attributes:This is bit #0 of the compatibility bits word, with hexadecimal value 0x1, known by the symbolic name GACF_IGNORENODISCARD in . This flag forces the GEM_NODISCARD flag passed to GlobalAlloc() by a program to be ignored. It worked around a bug in the run-time library supplied with Microsoft's own C compiler,
Microsoft C Microsoft Visual C++ (MSVC) is a compiler for the C, C++, C++/CLI and C++/CX programming languages by Microsoft. MSVC is proprietary software; it was originally a standalone product but later became a part of Visual Studio and made available i ...
version 6. The run-time library would erroneously set that flag in calls to GlobalAlloc(), and any application compiled with that compiler would thus exhibit the behaviour. ;Ignore raster fonts:This is bit #9 of the compatibility bits word, with hexadecimal value 0x200, known by the symbolic name GACF_TTIGNORERASTERDUPE in . This flag prevents fonts of the same sizes from being enumerated as both bitmap and TrueType fonts. This was because several applications, including
WordPerfect WordPerfect (WP) is a word processing application, now owned by Alludo, with a long history on multiple personal computer platforms. At the height of its popularity in the 1980s and early 1990s, it was the market leader of word processors, disp ...
and
Visual Basic Visual Basic is a name for a family of programming languages from Microsoft. It may refer to: * Visual Basic (.NET), the current version of Visual Basic launched in 2002 which runs on .NET * Visual Basic (classic), the original Visual Basic suppo ...
, were not capable of handling that particular situation correctly. ;Ignore topmost windows:This is bit #3 of the compatibility bits word, with hexadecimal value 0x8, known by the symbolic name GACF_IGNORETOPMOST in . This flag fixes a particular problem with cc:Mail that caused it to fail on Windows 3.1. It assumed that accessing the first window with GetWindow(HWND,GW_HWND_FIRST) would return it the window of the application that it had just started with WinExec(). But on Windows 3.1, which introduced the idea of "topmost" windows, this was no longer true. The flag caused Windows 3.1 to skip topmost windows when that particular API request was made. ;Module specific hack: ;No HRGN 1:This is bit #16 of the compatibility bits word, with hexadecimal value 0x10000, known by the symbolic name GACF_NOHRGN1 in . This flag reinstates a bug that existed in Windows 3.0 that was fixed in Windows 3.1. It did so because several applications, such as Microsoft Draw, worked around the bug themselves, and would fail to work correctly when the bug was eliminated. The bug was an error in the return value of the GetUpdateRect() function, whereby in certain situations (where the entire window was invalid) it would return the coördinates of the update rectangle in window coordinates, rather than in logical coordinates as it was supposed to. In Windows 3.1, it always returned the update rectangle in logical coordinates. The applications that worked around the bug would perform the coordinate transform themselves to work around the bug, and end up updating the wrong parts of their windows on Windows 3.1. ;One graphic band and use print escapes:This is bit #2 of the compatibility bits word, with hexadecimal value 0x4, known by the symbolic name GACF_ONELANDGRXBAND in . This flag causes Windows 3.1 to use a single graphics band when printing in
Landscape mode Page orientation is the way in which a rectangular page is oriented for normal viewing. The two most common types of orientation are ''portrait'' and ''landscape''. The term "portrait orientation" comes from visual art terminology and describe ...
, consuming as much memory as needed for that band, and discarding whatever content would not fit into the band. ;Subtract clip siblings:This is bit #14 of the compatibility bits word, with hexadecimal value 0x4000, known by the symbolic name GACF_SUBTRACTCLIPSIBS in . This flag causes Windows 3.1 to handle window invalidation differently for top-level windows that do not have the WS_CLIPSIBLINGS window style set, and their child windows. (In other words: It affects dialogue boxes and the controls on them.) With the flag set, Windows would not invalidate sibling child windows underneath (in the
z-order Z-order is an ordering of overlapping two-dimensional objects, such as windows in a stacking window manager, shapes in a vector graphics editor, or objects in a 3D application.Foley, James, Andries van Dam, Steven Feiner, and John Hughes (1987). ...
) other WS_CLIPSIBLINGS child windows. The main reason for the flag was applications such as Lotus Notes 2.1, which implemented its own
combo box A combo box is a commonly used graphical user interface A graphical user interface, or GUI, is a form of user interface that allows user (computing), users to human–computer interaction, interact with electronic devices through Graphics, gr ...
es as child windows, rather than as top-level windows (the system default combo box implementation). With this flag set, odd display problems with such windows would disappear. ;Support multiple printing bands:This is bit #5 of the compatibility bits word, with hexadecimal value 0x20, known by the symbolic name GACF_MULTIPLEBANDS in . This flag causes Windows 3.1 to always use multiple bands for printing, even when one band would be sufficient. This was to work around a problem in Freelance Graphics, which would assume that if only one band existed, and it was the entire page, it was the text band, and would not even attempt to print graphics. On Windows 3.1, the universal printer driver would sometimes be able to handle both text and graphics with a single band. By forcing the use of multiple bands, the problems that this would cause for Freelance Graphics were avoided. ;TT fonts are device fonts:This is bit #4 of the compatibility bits word, with hexadecimal value 0x10, known by the symbolic name GACF_CALLTTDEVICE in . This flag causes Windows 3.1 to always set the DEVICE_FONTTYPE flag on any TrueType fonts that are enumerated using the Windows EnumFont() API. This was to fix a problem with applications including AmiPro and WordPerfect, both of which assumed that all TrueType fonts available on a printer would be device-resident. ;Windows 3.1 palette behavior:


Additional flags

Windows 3.1 defined 20 application compatibility flags. Windows 95 and 98 defined a further 11 flags, not documented in the KnowledgeBase article and not assigned symbolic constant names in , which are the remainder of the options accessible via the "Advanced Options" menu in Make Compatible: ;Disable 16 color brush cache and 55ms timer:This is bit #29 of the compatibility bits word, with hexadecimal value 0x20000000. ;Disable EMF spooling:This is bit #26 of the compatibility bits word, with hexadecimal value 0x4000000. ;Disable font associations:This is bit #24 of the compatibility bits word, with hexadecimal value 0x1000000. ;Don't attach input thread when journaling, SetActiveWindow

SetForeGroundWindow:This is bit #28 of the compatibility bits word, with hexadecimal value 0x10000000. ;Don't Shutdown/Ignore certain faults/dequote commandline:This is bit #25 of the compatibility bits word, with hexadecimal value 0x2000000. ;Enable 3.x UI features:This is bit #27 of the compatibility bits word, with hexadecimal value 0x8000000. ;Force Win31 printer dev mode size:This is bit #23 of the compatibility bits word, with hexadecimal value 0x800000. ;Increase stack size:This is bit #22 of the compatibility bits word, with hexadecimal value 0x400000. ;Lie about device caps/no SetDIBits validation:This is bit #20 of the compatibility bits word, with hexadecimal value 0x100000. ;Lie about windows version:This is bit #21 of the compatibility bits word, with hexadecimal value 0x200000. ;Mirror fonts in :This is bit #30 of the compatibility bits word, with hexadecimal value 0x40000000.


References


Further reading

* * * * {{Microsoft Windows components Windows 95 Windows components Computer configuration