个人觉得和强制转换可以一样理解
---------------
造型运算符有几个造型运算符是C++语言特定的。这些运算符旨在除去旧的C语言造型形式中模糊性和危险的继承。这些运算符是:* dynamic_cast 用于多态类型的转换* static_cast 用于非多态类型的转换* const_cast 用于除去const,volatile和__unaligned属性* reinterpret_cast 用于位的简单再解释使用const_cast和reinterpret_cast作为一种最后的手段,因为这些运算符与旧的造型形式有相同的危险性。但是它们还是有必要用于完全取代旧的造型形式。dynamic_cast运算符表达式dynamic_cast(expression)将expression操作数转换为一个type-id类型的对象,type-id必须为以前定义的类类型或“void指针”的一个指针或一个引用。如果type-id是一个指针,则expression的类型必须为一个指针或如果type-id是一个引用,则它为一个l值。

解决方案 »

  1.   

    reinterpret_cast Operator
    The reinterpret_cast operator allows any pointer to be converted into any other pointer type. It also allows any integral type to be converted into any pointer type and vice versa. Misuse of the reinterpret_cast operator can easily be unsafe. Unless the desired conversion is inherently low-level, you should use one of the other cast operators.Syntaxreinterpret_cast < type-id > ( expression )The reinterpret_cast operator can be used for conversions such as char* to int*, or One_class* to Unrelated_class*, which are inherently unsafe.The result of a reinterpret_cast cannot safely be used for anything other than being cast back to its original type. Other uses are, at best, nonportable.The reinterpret_cast operator cannot cast away the const, volatile, or __unaligned attributes. See const_cast Operator for information on removing these attributes.The reinterpret_cast operator converts a null pointer value to the null pointer value of the destination type.
      

  2.   

    strip(阿飞) 说得对,看一下MSDN