CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: how to use AWE?

  1. #1
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    16

    how to use AWE?

    Hello,

    I tried to use AWE (Address Windowing Extensions) under Win2k with Visual C++ 6.0. For this I tried the example found at:

    http://msdn.microsoft.com/library/de...emman_8cjd.asp

    The platform SDK tells me to use the flag MEM_PHYSICAL to use AWE, but my compiler tells me it is not known. Sure there is no define for it in the header file (winnt.h).

    Does anyone knows with which compiler AWE can be used or what the boundary conditions are to work with it.

    Thanks for any help.

  2. #2
    Join Date
    Aug 2002
    Location
    Redmond, WA, USA
    Posts
    88
    Make sure you add the line:

    #define _WIN32_WINNT 0x0500

    BEFORE you include the Windows.h header file. This will *tell* the header that you want to compile an application for Windows 2000 and later. Since AWE is only available under Windows 2000 and later, this is necessary.

    - Robert

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