IDebugFunctionObject::CreateObject
Applies to: Visual Studio Visual 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 using a constructor.
Syntax
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 CreateObjectNoConstructor method.