Home COM GDI+ WebBrowser Data Access

IDataConvert Interface

 

IID_IDataCOnvert

{0C733A8D-2A1C-11CE-ADE5-00AA0044773D}

 

 

IDataConvert provides methods for data conversion using the OLE DB Data Conversion Library (oledb32.dll).

 

Documentation: IDataConvert

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDataConvert Methods

Description

DataConvert

Converts the data from the source type to the destination type.

CanConvert

Returns information about whether the conversion from the specified source type to the specified destination type is supported.

GetConversionSize

Calculates the size of the buffer needed by the destination data type to support a conversion.

 

DataConvert

 

FUNCTION IDataConvert_DataConvert ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL wSrcType AS WORD _

, BYVAL wDstType AS WORD _

, BYVAL cbSrcLength AS DWORD _

, BYREF pcbDstLength AS DWORD _

, BYVAL pSrc AS DWORD _

, BYREF pDst AS DWORD _

, BYVAL cbDstMaxLength AS DWORD _

, BYVAL dbSrcStatus AS DWORD _

, BYREF pdbsStatus AS DWORD _

, BYVAL bPrecision AS BYTE _

, BYVAL bScale AS BYTE _

, BYVAL dwFlags AS BYTE _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IDataConvert_DataConvert (pthis, wSrcType, wDstType, cbSrcLength, pcbDstLength, pSrc, pDst, cbDstMaxLength, dbSrcStatus, pdbsStatus, bPrecision, bScale, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

CanConvert

 

FUNCTION IDataConvert_CanConvert ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL wSrcType AS WORD _

, BYVAL wDstType AS WORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING IDataConvert_CanConvert (pthis, wSrcType, wDstType) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetConversionType

 

FUNCTION IDataConvert_GetConversionType ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL wSrcType AS WORD _

, BYVAL wDstType AS WORD _

, BYVAL pcbSrcLength AS DWORD _

, BYREF pcbDstLength AS DWORD _

, BYVAL pSrc AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING IDataConvert_GetConversionType (pthis, wSrcType, wDstType, pcbSrcLength, pcbDstLength, pSrc) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Saturday, 11 November 2006 05:30:07 +0100