Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I've got a strange problem with drawing circles.
Details are in the souce code shown below.
(Using VB Pro 6 on a win98 second edition box)
Any help would be very much appreciated.
Cheers,
David
*Source Code to reproduce problem*
Private Sub Form_Load()
ScaleMode = vbPixels
Circle (4226, 1383), 4087 ' succeeds
Circle (4226, 1383), 4088 ' fails silently
' coordinates of bounding box (of failing method) are
' as follows:
' left = 138
' right = 8314
' top = -2705
' bottom = 5471
' according to MS platform SDK documentation on
' ellipse() and arc() functions
' these limitations exist under Win95/98:
' left + right <= 32767
' top + bottom <= 32767
' left + right + top + bottom <= 32767
' the above bounding box clearly fits within these
' limitations
' so what is the problem?
' NB this also fails directly calling the arc() api
' function from vb as well
' I need to be able to know exactly what causes this,
' so I can trap for it. since occasionally a GPF occurs
' in GDI.EXE when this happens.
End Sub
I've got a strange problem with drawing circles.
Details are in the souce code shown below.
(Using VB Pro 6 on a win98 second edition box)
Any help would be very much appreciated.
Cheers,
David
*Source Code to reproduce problem*
Private Sub Form_Load()
ScaleMode = vbPixels
Circle (4226, 1383), 4087 ' succeeds
Circle (4226, 1383), 4088 ' fails silently
' coordinates of bounding box (of failing method) are
' as follows:
' left = 138
' right = 8314
' top = -2705
' bottom = 5471
' according to MS platform SDK documentation on
' ellipse() and arc() functions
' these limitations exist under Win95/98:
' left + right <= 32767
' top + bottom <= 32767
' left + right + top + bottom <= 32767
' the above bounding box clearly fits within these
' limitations
' so what is the problem?
' NB this also fails directly calling the arc() api
' function from vb as well
' I need to be able to know exactly what causes this,
' so I can trap for it. since occasionally a GPF occurs
' in GDI.EXE when this happens.
End Sub