Quote Originally Posted by Paul McKenzie View Post
That is because it is a callback function. The OS calls that function when an SE occurs. You don't call it.

Again, read the link I gave you. There is a full example below.

Regards,

Paul McKenzie
Thanks so much for your explanations. Now I think I understand this approach. I have one more question. Why'd we still need __try/__finally in order to generate a c++ exception? What is __try/__finally for? Thanks.