Robert Bernstein's Blog

Adventures in Windows, .NET, and C++
posts - 15, comments - 3, trackbacks - 0

My Links

News

Twitter












Archives

Post Categories

Image Galleries

October 2010 Entries

C++ Casting Operators
I often get confused about the different types of C++ casts: dynamic_cast can be used for "upcasting" or "downcasting" Upcasting: A* pA = dynamic_cast<A*>(pB) when B inherits from A Downcasting: B* pB = dynamic_cast<B*>(pA) when B inherits from A static_cast static_cast conversions are not as safe as dynamic_cast conversions, because static_cast does no run-time type check, while dynamic_cast does. A dynamic_cast to an ambiguous pointer will fail, while a static_cast returns as if nothing...

Posted On Wednesday, October 06, 2010 3:41 PM | Feedback (0) |

Where's the MSDN File Transfer Manager installed?
%SystemRoot%\Downloaded Program Files\TransferMgr.exe See http://bit.ly/bMhDVj

Posted On Wednesday, October 06, 2010 2:29 PM | Feedback (0) |

Powered by: