Element |
Description |
Element’s Attributes |
<comClass> |
Defines the com object to register. |
clsid – Com object class ID. iid – Interface ID event_iid – Events ID (optional) tlbid – Type library ID |
Note: The DLL should be digitally signed so that the user does not receive an ActiveX security warning when using it from an HTML page.
Note: In order for the in-memory registration to work, when creating the DLL (at least from ATL C++), use the following syntax when inheriting the object ATL class implementation from IDispatchImpl<> template: class ATL_NO_VTABLE CMyComClass : public CComObjectRootEx<CComSingleThreadModel>, public IDispatchImpl<IMyComClass, &IID_IMyComClass, &_LIBID_MyComClassLib, -1, -1> (Note the -1,-1 parameters at the end instead of the default 1, 0).
Note: All IDs should be in {} e.g. comClass clsid="{DF73AE6A-6DDD-4276-A26E-6CB8B28FE66A}"