idl文件中间如果组件有oleautomation的属性,那么对于生成的组件有什么影响
idl文件当中如果组件有oleautomation的属性,那么对于生成的组件有什么影响?
如果idl文件里面给组件添上了这么一个属性(就像下面这样),是会让编译器为这个组件生成额外的代码吗?
还是会生成什么特殊的注册信息什么呢?
换句话说,一个组件有了oleautomation属性以后,是如何做到对automation的支持的,编译器生成了额外的代码还是什么?
------解决方案--------------------
The parameters and return types specified for its members must be compatible with Automation,
http://technet.microsoft.com/zh-cn/library/ms221134(v=vs.85).aspx
如果idl文件里面给组件添上了这么一个属性(就像下面这样),是会让编译器为这个组件生成额外的代码吗?
library Hello
{
importlib("stdole32.tlb");
[
uuid(12345678-1234-1234-1234-123456789ABC),
helpstring("Application object for the Hello application."),
oleautomation,
dual
]
interface IHello : IDispatch
{
// Interface definition statements.
}
// Other library definition statements.
}
还是会生成什么特殊的注册信息什么呢?
换句话说,一个组件有了oleautomation属性以后,是如何做到对automation的支持的,编译器生成了额外的代码还是什么?
------解决方案--------------------
The parameters and return types specified for its members must be compatible with Automation,
http://technet.microsoft.com/zh-cn/library/ms221134(v=vs.85).aspx