The information in this article applies to:
SYMPTOMSTrying to use the REPLACE.BAT batch file from the Microsoft FORTRAN application note HF0450 "Alternatives to QuickWin Termination Message Box" on a FORTRAN Windows library that has already been configured for use with QuickWin graphics will cause the library utility to generate the following errors:
LIB will then generate 44 errors similar to the following:
CAUSEThe application note was created before the release of the the QuickWin graphics library. Most of the code in the application note is in the modified QuickWin Windows library, except for an object module, EXITMODE.OBJ, that contains two "wrapper" routines for accessing the routines SETEXITQQ and GETEXITQQ without interface statements. The code is in differently named modules and QWEXIT.OBJ, QWGLOB.OBJ, and QWISWIN.OBJ have already been removed during modification for QuickWin graphics. When the code in the object modules from the application note is added to LLIBFEW.LIB, the symbol redefinition errors occur because the code is already there. RESOLUTION
Do not run the REPLACE.BAT batch file from the application note. To access
the GETEXITQQ and SETEXITQQ routines, there are two options:
-or- MORE INFORMATIONThe actual routines that allow modification of the default exit mode for QuickWin applications are __QWINGetExit() and __QWINSetExit(). The object module EXITMODE.OBJ (included only with the application note) has two wrapper routines (GETEXITQQ and SETEXITQQ) that do nothing but call the __QWIN routines. They are not required if the necessary interface statements are included. For ease of use, some additional information can be added to FGRAPH.FD that allows use of symbolic constants instead of literal constants. NOTE: the two alias contain two consecutive leading underline characters. This may not be apparent in some versions of the text. Sample Code #1Put the following interface statements in the FGRAPH.FI file:
Sample Code #2Put the following information in the FGRAPH.FD file:
Sample Code #3The following code illustrates accessing the routines after the above files have been modified:
Additional query words: 5.10
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |