CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Win32-API AngleArc results in "Function allowed only in Win32 mode" under Win98

    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.
    Last edited by AlionSolutions; December 18th, 2002 at 10:26 AM.

  2. #2
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    The documentation I have says that it's not supported in Win9x:
    http://msdn.microsoft.com/library/de...ecurv_6ijn.asp

    --Paul

  3. #3
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    How else can I do it ?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured