Differences between ICursor-Based and OLE DB ActiveX Controls
The key to successful migration is understanding the difference between the two data access methods and how they apply to your controls.
All ICursor-based ActiveX controls possess the following characteristics:
-
The control has an ICursor type property that is used by a host to detect whether the control supports data binding.
-
This property is available to users only at design time, so that a data source can be assigned to it. At run time this property cannot be set; when read, it returns nothing.
-
The control writer does not supply code for this property. Rather, the writer must implement the IBoundObject interface to receive notifications of changes in the data source and take appropriate action.
OLE DB ActiveX controls possess these characteristics:
-
The control implements two properties, one of type DataSource and the other of type DataMember. These properties are used by a host to detect whether the control supports data binding.
-
Both properties are available to users at design time and run time.
-
The control writer must implement these properties and take appropriate action when their values are changed.