Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə130/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   126   127   128   129   130   131   132   133   ...   294
DelphiLanguageGuide

Linking to Object Files
To call routines from a separately compiled object file, first link the object file to your application using the 
$L
 (or
$LINK
) compiler directive. For example,
{$L BLOCK.OBJ}
114


links BLOCK.OBJ into the program or unit in which it occurs. Next, declare the functions and procedures that you
want to call:
procedure MoveWord(var Source, Dest; Count: Integer); external;
procedure FillWord(var Dest; Data: Integer; Count: Integer); external;
Now you can call the 
MoveWord
 and 
FillWord
 routines from BLOCK.OBJ.
On the Win32 platform, declarations like the ones above are frequently used to access external routines written in
assembly language. You can also place assembly-language routines directly in your Delphi source code.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   126   127   128   129   130   131   132   133   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin