Click to See Complete Forum and Search --> : Win32-API AngleArc results in "Function allowed only in Win32 mode" under Win98


AlionSolutions
December 18th, 2002, 09:12 AM
Hi,
I'm in trouble with Win32-API again. I wanted to code a pie-chart-class and thought it would be a good idea to use the Win2-GDI-function AngleArc. It s easy to use ad does the task quite quick.

Ok, unfortunately I have to develop for Win9X and NT/2000 and know that some API-functions work only under NT/2000. For this reason I allways have an eye on the little table of availabilities in my Win2-API-documentation.

For the AngleArc-function it shows the following:

DLL: GDI32
Index 95: 9
Index 98: 9
Index NT: 5
API-Version: 95/98/NT

Ok, this looks to me like this function is available under Win95/98/NT... or am I wrong ?

When I started my testprogramm for the pie-chart-class under Win98 no pie-chart was drawn. So I did a little GetLastError,FormatMessage,MesageBox-stuff, and this resulted in a messagebox reporting the following:

Function allowed only in Win32 mode

This is a translation from my german-windows-version. dont't know if I translated it absolutely correct. for the german speaking people round here the original message:

Diese Funktion ist nur im Win32-Modus gueltig.

Ok, why ??? I didn't start my prog from DOS or anything weird else. If this function is available under Win98/95, it should work but it doesn't.

Is there anybody out there who experienced the same problem and / or has a solution ?

Greetings

Juergen

...nearly forgot that: Under Win2000 the prog runs without problems.

PaulWendt
December 18th, 2002, 12:12 PM
The documentation I have says that it's not supported in Win9x:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/linecurv_6ijn.asp

--Paul

AlionSolutions
December 20th, 2002, 06:30 AM
Hi Paul,
ok, thanks, think I have to beat up the publisher of my API-Documentation ;)

Do you - or somebody else - give me some advice how to draw arcs like I do it with AngleArc ? Are there other suitable functions available ?

Thanks in advance

Juergen