Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:43
Anandi.VC8-May-08 21:43 
QuestionException Pin
Anandi.VC8-May-08 2:51
Anandi.VC8-May-08 2:51 
AnswerRe: Exception Pin
Cedric Moonen8-May-08 2:55
Cedric Moonen8-May-08 2:55 
GeneralRe: Exception Pin
Programm3r8-May-08 2:58
Programm3r8-May-08 2:58 
AnswerRe: Exception Pin
CPallini8-May-08 2:57
mveCPallini8-May-08 2:57 
AnswerRe: Exception [modified] Pin
Rajkumar R8-May-08 4:07
Rajkumar R8-May-08 4:07 
GeneralRe: Exception Pin
Stephen Hewitt8-May-08 17:04
Stephen Hewitt8-May-08 17:04 
Rajkumar R wrote:
try // SEH is enabled
{
int *ptr = (int *)0x01;
*ptr = 1000;
}
catch (...)
{
cout << "exception";
}


This construct is non-standard. The C++ standard states that catch can only catch exceptions explicitly thrown via the throw keyword. Microsoft got it wrong but later added the /EH[^] switch to select the old non-standard behaviour or the behaviour mandated by the C++ standard.

Steve

GeneralRe: Exception Pin
Rajkumar R8-May-08 18:44
Rajkumar R8-May-08 18:44 
GeneralRe: Exception Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 
QuestionHow to copy null terminatd buffer Pin
Programm3r8-May-08 1:59
Programm3r8-May-08 1:59 
AnswerRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:05
Cedric Moonen8-May-08 2:05 
GeneralRe: How to copy null terminatd buffer Pin
Programm3r8-May-08 2:25
Programm3r8-May-08 2:25 
QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:29
mveCPallini8-May-08 2:29 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:32
Cedric Moonen8-May-08 2:32 
GeneralRe: How to copy null terminatd buffer Pin
Rajkumar R8-May-08 3:05
Rajkumar R8-May-08 3:05 
GeneralRe: How to copy null terminated buffer Pin
Programm3r8-May-08 4:19
Programm3r8-May-08 4:19 
GeneralRe: How to copy null terminated buffer Pin
Rajkumar R8-May-08 4:35
Rajkumar R8-May-08 4:35 
QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:06
mveCPallini8-May-08 2:06 
GeneralRe: How to copy null terminatd buffer Pin
Programm3r8-May-08 2:28
Programm3r8-May-08 2:28 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:34
Cedric Moonen8-May-08 2:34 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:36
professionalRajesh R Subramanian8-May-08 2:36 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:43
Cedric Moonen8-May-08 2:43 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:45
professionalRajesh R Subramanian8-May-08 2:45 
GeneralRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:49
mveCPallini8-May-08 2:49 

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.