Muokkaa

Jaa


IConvertTypeImpl Class

Provides an implementation of the IConvertType interface.

Syntax

template <class T>
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 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

STDMETHOD(CanConvert)(DBTYPE wFromType,
   DBTYPE wToType,
   DBCONVERTFLAGS dwConvertFlags);

Parameters

See IConvertType::CanConvert in the OLE DB Programmer's Reference.

Remarks

Uses OLE DB data conversion in MSADC.DLL.

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture