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


Calling Conventions for Interfaces



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə225/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   221   222   223   224   225   226   227   228   ...   294
DelphiLanguageGuide

Calling Conventions for Interfaces
The default calling convention for interface methods is register, but interfaces shared among modules (especially if
they are written in different languages) should declare all methods with stdcall. Use safecall to implement CORBA
interfaces. On Win32, you can use safecall to implement methods of dual interfaces.
Interface Properties
Properties declared in an interface are accessible only through expressions of the interface type; they cannot be
accessed through class-type variables. Moreover, interface properties are visible only within programs where the
interface is compiled.
In an interface, property read and write specifiers must be methods, since fields are not available.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   221   222   223   224   225   226   227   228   ...   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