IDebugFunctionObject::CreatePrimitiveObject
Note
This article applies to Visual Studio 2015. 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 a primitive data object, such as a simple integer.
Syntax
HRESULT CreatePrimitiveObject(
OBJECT_TYPE ot,
IDebugObject** ppObject
);
int CreatePrimitiveObject(
enum_OBJECT_TYPE ot,
out IDebugObject ppObject
);
Parameters
ot
[in] A value from the OBJECT_TYPE enumeration representing the type of primitive to create.
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 a primitive object that is a parameter to the function which is represented by the IDebugFunctionObject interface. For example, if the expression string is "myString(5)", this method would be used to create an object representing the integer 5.