Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 10.2 Tokyo no longer supports IMAGE_FILE_LARGE_ADDRESS_AWARE?

According to the DocWiki which was simply probably not updated, the following should be a valid directive in a .pas file:

{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}

However it causes this dcc32 error:

[dcc32 Error] Project1.dpr(13): E2003 Undeclared identifier: 'IMAGE_FILE_LARGE_ADDRESS_AWARE'

Has this ability been lost, or is it now always on?

like image 731
Warren P Avatar asked Oct 18 '25 12:10

Warren P


1 Answers

IMAGE_FILE_LARGE_ADDRESS_AWARE is declared in Windows.pas (WinAPI.Windows in recent Delphi versions). You've apparently not included it in the unit where you've put the directive. If you're avoiding that for some reason, define it yourself:

IMAGE_FILE_LARGE_ADDRESS_AWARE = $0020;
like image 151
Ken White Avatar answered Oct 20 '25 16:10

Ken White



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!