dynamic_cast從子類到基類的指針轉換 , 從基類到子類的轉換html
http://www.cnblogs.com/ider/archive/2011/08/01/cpp_cast_operator_part5.htmlide
具體用法如例指針
CDevPage* pSheet = NULL; CPolePage *pPoleSheet = NULL; pPoleSheet = dynamic_cast<CPolePage* >(pSheet);