Partager via


InitializeTransform method

Initializes a transform that has been created by the caller.

Syntax

HRESULT retVal = object.InitializeTransform(pTransform, punkInputs, ulNumInputs, punkOutputs, ulNumOutputs, pInitProps, pErrLog);

Parameters

  • pTransform [in]
    Type: IDXTransform

    Pointer to the transform to initialize.

  • punkInputs [in]
    Type: IUnknown

    Address of a pointer to an array of input data object interfaces that will be used by the transform. Specify NULL if the transform does not use any inputs.

  • ulNumInputs [in]
    Type: unsigned long

    Number of data objects referred to by the punkInputs parameter.

  • punkOutputs [in]
    Type: IUnknown

    Address of a pointer to an array of output data object interfaces that will be used by the transform. Can be NULL.

  • ulNumOutputs [in]
    Type: unsigned long

    Number of data objects referred to by the punkOutputs parameter.

  • pInitProps [in]
    Type: IPropertyBag

    Pointer to an optional property bag used to initialize the transform. Can be NULL.

  • pErrLog [in]
    Type: IErrorLog

    Pointer to an optional error log object used during property persistence. Can be NULL.

Remarks

This method is used to properly initialize a transform that was created by a user. It uses the IDXTransform::Setup method to define the input and output data objects used in the transform.