PRB: SYS(17) Function Returns Incorrect Processor TypeLast reviewed: December 22, 1997Article ID: Q170392 |
The information in this article applies to:
SYMPTOMSWARNING: The information in this article has not been confirmed or tested by Microsoft. Some or all of the information in this article has been taken from unconfirmed customer reports. ANY USE BY YOU OF THE INFORMATION PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this information "as is" without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The SYS(17) function returns the wrong processor type when running on a Power Computing Power Tower. On this machine, the SYS(17) function reports that the machine has a 68000 processor instead of 604E processor. Since Visual FoxPro only installs on Power Macintosh machines, this information is clearly incorrect.
RESOLUTIONIf it is necessary to determine whether the machine is a Power Macintosh or a 68k Macintosh, use the FXGestalt() function available in FoxTools. The following code provides an example of how to use this function:
SET LIBRARY TO Home()+"FoxTools.cfm" retval=0 i=FxGestalt("sysa",@retval) ? retvalThe variable "retval" returns 1 for a 68k Macintosh and 2 for a Power Macintosh.
MORE INFORMATIONThe Power Computing Power Tower is a Power Macintosh clone that uses the Motorola chip.
Steps to Reproduce Behavior
REFERENCES"Operating System Utilities," pages 1-20 to 1-24, Inside Macintosh CD-ROM by Apple Computer 1995. FoxTools Help file found in the Microsoft Visual FoxPro: Tools folder.
Keywords : FxprgGeneral VFoxMac Version : MACINTOSH:3.0b Platform : MACINTOSH Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |