Partager via


IDebugFunctionObject::CreateObjectNoConstructor

Creates an object with no constructor.

HRESULT CreateObjectNoConstructor( 
   IDebugField*   pClassObject,
   IDebugObject** ppObject
);
int CreateObjectNoConstructor(
   IDebugField      pClassField, 
   out IDebugObject ppObject
);

Parameters

  • pClassObject
    [in] An IDebugField object representing the type of the object to be created.

  • 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 structure or complex type (that does not require a constructor) that is a parameter to the function which is represented by the IDebugFunctionObject interface.

If the object parameter requires a constructor, call the IDebugFunctionObject::CreateObject method.

See Also

Reference

IDebugField

IDebugFunctionObject

IDebugFunctionObject::CreateObject