PBAddIn Object (Windows CE 5.0)
Each add-in exposes a PBAddIn object and a Commands Object. The IDE uses the PBAddIn object to connect to or disconnect from an add-in, and it uses the Commands object to carry out a command added by the IApplication::AddCommand method.
An add-in exposes the PBAddIn object by implementing the COM IDSAddIn interface or the IDispatchIDispDSAddIn interface.
Platform Builder performs early binding on the COM interface, and performs late binding on the IDispatch interface. The advantage of using the COM interface is that its early binding makes all calls into the interface faster at run time.
Note IDSAddIn is not a dual interface because it does not derive from IDispatch. It derives from IUnknown.
If an add-in provides a COM interface to its PBAddIn object, Platform Builder chooses it; otherwise, Platform Builder chooses an IDispatch interface. If neither interface is available, Platform Builder does not connect to the add-in.
If you use the Platform Builder Add-in Wizard, it automatically generates the code to implement the COM interface.
See Also
Add-in Wizard Results | Commands Object
Send Feedback on this topic to the authors