The information in this article applies to:
SYMPTOMSWhen a program draws a line with an endpoint outside the screen coordinates, the line is not clipped and the following error message is generated:
CAUSEThe limit seems to be related to converting to an int. In the sample code below, the extent of X in the window coordinates is 1.0, the screen coordinate is 639, and the line is drawn to 51.28. For example:
In the preceding example, a line drawn to 51.27 succeeds (639 * 51.27 / 1.0
= 32,761.53 < 32,767).
RESOLUTIONDo not draw outside the screen coordinates. Clip the endpoints of lines before calling the LINETO_W routine. If you clip to values within 10 times the size of the window, the code should work in any resolution. STATUSMicrosoft has confirmed this to be a bug with Microsoft FORTRAN PowerStation for MS-DOS, versions 1.0 and 1.0a. MORE INFORMATIONTo demonstrate this problem, compile the following sample code and run it from a full-screen MS-DOS prompt in Windows (not Windows NT) or directly from MS-DOS. Sample Code
Additional query words: 1.00 1.00a
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |