MSVCRT___RTDynamicCast(3w)

MSVCRT___RTDynamicCast3w

Usage

void* CDECL MSVCRT___RTDynamicCast
(
void* cppobj,
int unknown,
type_info* src,
type_info* dst,
int do_throw
)

Overview

Dynamically cast a C++ object to one of its base classes.

Params

cppobj [In] Any C++ object to cast.

unknown [In] Reserved, set to 0.

src [In] type_info object describing cppobj.

dst [In] type_info object describing the base class to cast to.

do_throw [In] TRUE = throw an exception if the cast fails, FALSE = don't.

Returns

Success: The address of cppobj, cast to the object described by dst.

Failure: NULL, If the object to be cast has no RTTI, or dst is not a valid cast for cppobj. If do_throw is TRUE, a bad_cast exception is thrown and this function does not return.

Notes

This function is usually called by compiler generated code as a result of using one of the C++ dynamic cast statements.

Implementation

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in "dlls/msvcrt/cpp.c".

Debug channel "msvcrt".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.