I want my application to be able to use more than 2 GB of memory, I searched googled and found that the IMAGE_FILE_LARGE_ADDRESS_AWARE command allows me to do this.
So I added
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
Into my program file .dpr after all uses and the line {$ R * .res},
but when I compile, I get an error message:
E2003 Undeclared identifier: 'IMAGE_FILE_LARGE_ADDRESS_AWARE'
What am I doing wrong?
Also, on Windows 7 64bit, do I need to tinker with the boot settings for this command, or just compile a 32-bit application with this command, and it will do the rest automatically?
thanks
Kingofffong
source share