Share via


IDebugFunctionObject::CreateObjectNoConstructor

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Creates an object with no constructor.

Syntax

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 CreateObject method.

See also