Microsoft KB Archive/58674

= Correction for PaintArc, QuickBASIC ToolBox Example, Page 516 =

Article ID: 58674

Article Last Modified on 11/21/2006



This article was previously published under Q58674



SUMMARY
The description of the PaintArc ToolBox routine on Page 516 of the &quot;Microsoft QuickBASIC for Apple Macintosh: Language Reference&quot; manual is incorrect. There are three errors in the description, as follows:


 * 1) The trap number (&HA8CO) is wrong in the example; however, it is correct in the description above (&HA8BF).
 * 2) Also in the example, the rectangle parameter r% is incorrectly passed (without VARPTR) in the ToolBox statement.
 * 3) The rectangle argument is listed as &quot;r%&quot;, which signifies a single integer, instead of as &quot;r%&quot;, which signifies an integer array.



MORE INFORMATION
For a list of the Macintosh system traps, see Appendix C of &quot;Inside Macintosh: Volume III,&quot; by Apple Computer, published by Addison-Wesley.

The incorrect example from Page 516 is as follows: TrapNo%=&HA8CO Toolbox &quot;P&quot;, TrapNo%, r%(0), (startAngle%), 45 It should read as follows: TrapNo%=&HA8BF Toolbox &quot;P&quot;, TrapNo%, VARPTR(r%(0)), (startAngle%), 45 The following is a complete example of invoking the PaintArc routine through QuickBASIC's ToolBox statement: Toolbox &quot;i&quot;          'Initialize toolbox and variables DIM r%(3) SetRect r%(0), 10, 10, 100, 100 startAngle% = 10 TrapNo%=&HA8BF Toolbox &quot;P&quot;, TrapNo%, VARPTR(r%(0)), (startAngle%), 45

Additional query words: MQuickB

Keywords: KB58674

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.