Hello,
Firstly, a quot from Dr.Bob's site:
The basic idea of the solution is the fact that the DLL will not be loaded
right away (which is the case for implicit linking), but only when needed. So potentially “delayed”, and hence the name “delay loading”.
The main idea is the similar to the traditional dynamic loading library using LoadLibrary(), however, this directive ensures the compiler to handle it automatically for us.
Another quot:
The delayed directive is useful in the case where the imported routines do
Show quoted text 7 lines
And the useful sources:
docwiki -
http://docwiki.embarcadero.com/CodeExamples/Berlin/en/DelayedLoading_(Delphi)
Dr.Bob - http://www.drbob42.com/examines/examinc1.htm
docwiki -
http://docwiki.embarcadero.com/RADStudio/Berlin/en/Libraries_and_Packages_(Delphi)
My test ({$mode delphi}; FPC from trunk):
procedure foo(); cdecl; external 'foo' name 'foo' delayed;The compiler error:
"Fatal: Syntax error, ";" expected but "identifier DELAYED" found".
Thank you!
