Hello,
I cannot find a common way of declaring and using procedural variables that both FPC and Delphi find acceptable. Everything I've tried, if it's acceptable to one compiler it isn't to the other.
Attached is a sample program that I'd like to be able to compile (and run of course) without having to use {$ifdef FPC}.... {$else}.... {$endif}
In the attached sample, there doesn't seem to be a way to make the following statement (its intent) acceptable to both compilers
// Delphi doesn't like the statement below. It likes it without the
// typecast but then FPC doesn't like it if its not there.
pointer(NtQueryInformationProcessPtr)
:= GetProcAddress(NtdllHandle, 'NtQueryInformationProcess');
Is there some way of declaring NtQueryInformationProcessPtr that would make both compilers happy (without using {$ifdef}s ?
Thank you for your help.