Freigeben über


IDebugFunctionObject::CreateObject

Creates an object using a constructor.

HRESULT CreateObject( 
   IDebugFunctionObject* pConstructor,
   DWORD                 dwArgs,
   IDebugObject*         pArgs[],
   IDebugObject**        ppObject
);
int CreateObject(
   IDebugFunctionObject pConstructor, 
   uint                 dwArgs, 
   IDebugObject[]       pArgs, 
   out IDebugObject     ppObject
);

Parameters

  • pConstructor
    [in] An IDebugFunctionObject object representing the constructor of the object to be created.

  • dwArgs
    [in] The number of parameters in the pArg array. Represents the number of parameters passed to the constructor.

  • pArg
    [in] An array of IDebugObject objects representing the parameters passed to the constructor.

  • ppObject
    [out] Returns an IDebugObject representing the newly created object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Call this method to create an object that represents an instance of a class (or other complex type that requires a constructor) that is a parameter to the function which is represented by the IDebugFunctionObject interface.

If the object parameter does not require a constructor, call the IDebugFunctionObject::CreateObjectNoConstructor method.

See Also

Reference

IDebugFunctionObject

IDebugFunctionObject::CreateObjectNoConstructor