Originale-mail to me for new edition

 

Dual interfaces (Windows only)

 

A dual interface is an interface that supports both compile-time binding and runtime binding through Automation. Dual interfaces must descend from IDispatch.

All methods of a dual interface (except from those inherited from IInterface and IDispatch) must use the safecall convention, and all method parameter and result types must be automatable. (The automatable types are Byte, Currency, Real, Double, Real48, Integer, Single, Smallint, AnsiString, ShortString, TDateTime, Variant, OleVariant, and WordBool.)

 

Topic groups

 

See also

Automation objects (Windows only)

Calling conventions

Dispatch interface types (Windows only)

Object interfaces: Overview

 

 

译文

 

双重接口(仅适用于Windows

 

双重接口是这样的接口:通过自动化操作,它既支持编译时绑定,也支持运行时绑定。双重接口必须起源于IDispatch

All methods of a dual interface (except from those inherited from IInterface and IDispatch) must use the safecall convention, and all method parameter and result types must be automatable. (The automatable types are Byte, Currency, Real, Double, Real48, Integer, Single, Smallint, AnsiString, ShortString, TDateTime, Variant, OleVariant, and WordBool.)

双重接口中的所有方法(除了继承自IInterfaceIDispatch的方法)必须使用safecall调用约定,并且所有方法参数及返回类型必须是可自动化的。(可自动化的类型包括ByteCurrencyRealDoubleReal48IntegerSingleSmallintAnsiStringShortStringTDateTimeVariantOleVariant以及WordBool。)

 

主题组

 

相关主题

自动化对象(仅适用于Windows

调用约定

调度接口类型(仅适用于Windows

对象接口:概述