external (procedure directive)


 external (procedure directive)

External declarations allow you to interface with separately compiled procedures and functions written in assembly language.

The external code is linked with the Pascal unit or program through $L filename compiler directives.

In procedures and functions imported from DLLs, the external directive takes the place of the declaration and statement parts that would otherwise be present.


 function GetMode: Word; external;
 procedure SetMode(Mode: Word); external; $L CURSOR.OBJ

 function GlobalAlloc(Flags: Word; Bytes: Longint): THandle; far; external

'KERNEL' index 15;

Тэги: external
| G+
Код для вставки: :: :: :: ::
Поделиться: // //