Obsolete Members for QAxFactory

以下成员源于类 QAxFactory 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

(deprecated) QAXFACTORY_DEFAULT ( , ClassID , InterfaceID , EventID , LibID , AppID )

宏文档编制

QAXFACTORY_DEFAULT ( , ClassID , InterfaceID , EventID , LibID , AppID )

This function is deprecated. We strongly advise against using it in new code.

此宏可以用于导出单个 QObject 子类 这种 COM 服务器透过隐式声明 QAxFactory 实现。

此宏导出类 作为 COM 辅助类采用 CLSID ClassID . The properties and slots will be declared through a COM interface with the IID InterfaceID , and signals will be declared through a COM event interface with the IID EventID . All declarations will be in a type library with the id LibID ,且若服务器是可执行服务器那么它将拥有应用程序 ID AppID .

#include <qaxfactory.h>
#include "theactivex.h"
QAXFACTORY_DEFAULT(
    TheActiveX,                               // widget class
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // class ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // interface ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // event interface ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID
    "{01234567-89AB-CDEF-0123-456789ABCDEF}"  // application ID
)
					

注意: This class has been deprecated in favor of QAXFACTORY_BEGIN ().

另请参阅 QAXFACTORY_EXPORT ().