Click here to Skip to main content
15,941,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: vlaue of Pi [modified] Pin
hoxsiew8-Aug-08 2:48
hoxsiew8-Aug-08 2:48 
Questiona error "TCP/IP stack full" Pin
brightgirl7-Aug-08 15:30
brightgirl7-Aug-08 15:30 
Questiondynamic_cast Pin
swjam7-Aug-08 15:09
swjam7-Aug-08 15:09 
AnswerRe: dynamic_cast Pin
Stephen Hewitt7-Aug-08 17:23
Stephen Hewitt7-Aug-08 17:23 
GeneralRe: dynamic_cast Pin
swjam7-Aug-08 17:43
swjam7-Aug-08 17:43 
GeneralRe: dynamic_cast Pin
Stephen Hewitt7-Aug-08 17:44
Stephen Hewitt7-Aug-08 17:44 
GeneralRe: dynamic_cast Pin
swjam7-Aug-08 17:58
swjam7-Aug-08 17:58 
AnswerRe: dynamic_cast Pin
Jijo.Raj7-Aug-08 17:56
Jijo.Raj7-Aug-08 17:56 
swjam wrote:
for the code block below, if the actual object pointed to by the pointer passed to the function is of class B, the the cast would throw an exception? thanks


This will work fine and won't throw any exception. Smile | :)

If you're facing some kind of exception, it may be due to this - if you do Base to Derived casting and if RTTI is not enabled, then you'll face an un-handled exception.

Have a look at here too - http://weseetips.com/2008/06/30/dynamic_cast-throws-unhandled-exception-during-reverse-polymorphism/[^]

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

QuestionGet System Current language Pin
hariakuthota7-Aug-08 9:25
hariakuthota7-Aug-08 9:25 
AnswerRe: Get System Current language Pin
Perspx7-Aug-08 9:37
Perspx7-Aug-08 9:37 
GeneralRe: Get System Current language Pin
hariakuthota7-Aug-08 10:07
hariakuthota7-Aug-08 10:07 
GeneralRe: Get System Current language Pin
Perspx7-Aug-08 10:11
Perspx7-Aug-08 10:11 
JokeRe: Get System Current language Pin
David Crow8-Aug-08 4:00
David Crow8-Aug-08 4:00 
QuestionDirectX lib file question Pin
followait7-Aug-08 6:30
followait7-Aug-08 6:30 
AnswerRe: DirectX lib file question Pin
Mark Salsbery7-Aug-08 6:42
Mark Salsbery7-Aug-08 6:42 
GeneralRe: DirectX lib file question Pin
followait7-Aug-08 19:53
followait7-Aug-08 19:53 
GeneralRe: DirectX lib file question Pin
Mark Salsbery8-Aug-08 3:50
Mark Salsbery8-Aug-08 3:50 
GeneralRe: DirectX lib file question Pin
followait8-Aug-08 20:54
followait8-Aug-08 20:54 
QuestionClass definition issue Pin
Patrick G7-Aug-08 4:57
Patrick G7-Aug-08 4:57 
AnswerRe: Class definition issue Pin
Cedric Moonen7-Aug-08 5:04
Cedric Moonen7-Aug-08 5:04 
GeneralRe: Class definition issue Pin
Patrick G7-Aug-08 5:33
Patrick G7-Aug-08 5:33 
QuestionCalling exported functions from a static DLL Pin
Yashusid7-Aug-08 4:01
Yashusid7-Aug-08 4:01 
AnswerRe: Calling exported functions from a static DLL Pin
Matthew Faithfull7-Aug-08 4:18
Matthew Faithfull7-Aug-08 4:18 
GeneralRe: Calling exported functions from a static DLL Pin
Yashusid7-Aug-08 4:40
Yashusid7-Aug-08 4:40 
GeneralRe: Calling exported functions from a static DLL Pin
led mike7-Aug-08 4:44
led mike7-Aug-08 4:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.