IDebugBinder::ResolveRuntimeType

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

This method determines the run-time type of an object.

Syntax

HRESULT ResolveRuntimeType(   
   IDebugObject* pObject,  
   IDebugField** ppResolved  
);  
int ResolveRuntimeType(  
   IDebugObject     pObject,   
   out IDebugField  ppResolved  
);  

Parameters

pObject
[in] The IDebugObject to be resolved.

ppResolved
[out] Returns the type of the object as an IDebugField.

Return Value

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

Remarks

The run-time type of an object is not always known at compile time. For example, using polymorphism, an argument can be passed to a function as its base class, such as a button class. The actual argument might be a derived class, such as a radio button class.

See Also

IDebugBinder
IDebugObject
IDebugField