Ignasi
SIG Leader
Joined: 10 Oct 2008
Posts: 19
Location: USA
|
I finally got around thinking about the TypeInfo issue. My preference is for keeping the interface and extend it to other specialized units, as Michel mentions above. I'd propose the folllowing, but since it modifies what we released, but never used, in 1.0 maybe some names need to be changed:
[
uuid(CapeUnitType_IID),
version(1.0)
]
typedef enum eCapeUnitType {
CAPE_CONVENTIONALOP = 0,
CAPE_REFINERYREACTOROP = 1
} CapeUnitType;
// ICapeUnitTypeInfo interface
[
object,
uuid(ICapeUnitTypeInfo_IID),
dual,
helpstring("ICapeUnitTypeInfo Interface"),
pointer_default(unique)
]
interface ICapeUnitTypeInfo : IDispatch
{
[propget, id(1), helpstring("property GetUnitType")]
HRESULT GetUnitType([out, retval] CapeUnitType* unitType);
};
|