Click to See Complete Forum and Search --> : how to use AWE?


blasi
July 31st, 2002, 10:43 AM
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/default.asp?url=/library/en-us/memory/memman_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.

RobAnd
August 21st, 2002, 01:21 AM
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