[fpc-pascal] Function to know if WIN is 32 or 64

Henry Vermaak henry.vermaak at gmail.com
Tue Mar 15 16:16:55 CET 2011


On 15 March 2011 15:00, Marcos Douglas <md at delfire.net> wrote:
>
> Weird. This code did not compile in this line:
>  @GNSIProc := GetProcAddress(GetModuleHandle('kernel32.dll'),
> 'GetNativeSystemInfo');
>
> Error: unit1.pas(46,2) Error: Can't assign values to an address

This was Delphi code, so remove the @.

Henry



More information about the fpc-pascal mailing list