--- description: "Learn more about: IConvertTypeImpl Class" title: "IConvertTypeImpl Class" ms.date: "11/04/2016" f1_keywords: ["ATL.IConvertTypeImpl", "IConvertTypeImpl", "ATL.IConvertTypeImpl", "ATL::IConvertTypeImpl", "ATL::IConvertTypeImpl", "IConvertTypeImpl.CanConvert", "CanConvert", "IConvertTypeImpl::CanConvert"] helpviewer_keywords: ["IConvertTypeImpl class", "CanConvert method"] ms.assetid: 7f81e79e-7d3f-4cbe-b93c-d632a94b15f6 --- # IConvertTypeImpl Class Provides an implementation of the [IConvertType](/previous-versions/windows/desktop/ms715926(v=vs.85)) interface. ## Syntax ```cpp template class ATL_NO_VTABLE IConvertTypeImpl : public IConvertType, public CConvertHelper ``` ### Parameters *T*
Your class, derived from `IConvertTypeImpl`. ## Requirements **Header:** atldb.h ## Members ### Interface Methods | Name | Description | |-|-| |[CanConvert](#canconvert)|Gives information on the availability of type conversions on a command or on a rowset.| ## Remarks This interface is mandatory on commands, rowsets, and index rowsets. `IConvertTypeImpl` implements the interface by delegating to the conversion object supplied by OLE DB. ## IConvertTypeImpl::CanConvert Gives information on the availability of type conversions on a command or on a rowset. ### Syntax ```cpp STDMETHOD(CanConvert)(DBTYPE wFromType, DBTYPE wToType, DBCONVERTFLAGS dwConvertFlags); ``` #### Parameters See [IConvertType::CanConvert](/previous-versions/windows/desktop/ms711224(v=vs.85)) in the *OLE DB Programmer's Reference*. ### Remarks Uses OLE DB data conversion in `MSADC.DLL`. ## See also [OLE DB Provider Templates](../../data/oledb/ole-db-provider-templates-cpp.md)
[OLE DB Provider Template Architecture](../../data/oledb/ole-db-provider-template-architecture.md)