Click here to Skip to main content
15,917,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Suggest a fast way to do? Pin
Richard MacCutchan17-Oct-11 23:13
mveRichard MacCutchan17-Oct-11 23:13 
GeneralRe: Suggest a fast way to do? Pin
Erudite_Eric18-Oct-11 1:09
Erudite_Eric18-Oct-11 1:09 
GeneralRe: Suggest a fast way to do? Pin
john563218-Oct-11 1:26
john563218-Oct-11 1:26 
GeneralRe: Suggest a fast way to do? Pin
Erudite_Eric18-Oct-11 20:12
Erudite_Eric18-Oct-11 20:12 
GeneralRe: Suggest a fast way to do? Pin
Richard MacCutchan18-Oct-11 2:41
mveRichard MacCutchan18-Oct-11 2:41 
QuestionCrashing problem in Report control Pin
Amrit Agr16-Oct-11 20:25
Amrit Agr16-Oct-11 20:25 
AnswerRe: Crashing problem in Report control Pin
_AnsHUMAN_ 16-Oct-11 20:51
_AnsHUMAN_ 16-Oct-11 20:51 
QuestionHow to send a click message to an listctrl ? Pin
_Flaviu15-Oct-11 7:30
_Flaviu15-Oct-11 7:30 
AnswerRe: How to send a click message to an listctrl ? Pin
MartyTPS15-Oct-11 16:25
MartyTPS15-Oct-11 16:25 
GeneralRe: How to send a click message to an listctrl ? Pin
_Flaviu15-Oct-11 22:01
_Flaviu15-Oct-11 22:01 
GeneralRe: How to send a click message to an listctrl ? Pin
_Flaviu16-Oct-11 19:56
_Flaviu16-Oct-11 19:56 
AnswerRe: How to send a click message to an listctrl ? Pin
«_Superman_»15-Oct-11 21:08
professional«_Superman_»15-Oct-11 21:08 
GeneralRe: How to send a click message to an listctrl ? Pin
_Flaviu15-Oct-11 22:00
_Flaviu15-Oct-11 22:00 
GeneralRe: How to send a click message to an listctrl ? Pin
Stephen Hewitt16-Oct-11 2:36
Stephen Hewitt16-Oct-11 2:36 
GeneralRe: How to send a click message to an listctrl ? Pin
_Flaviu16-Oct-11 19:56
_Flaviu16-Oct-11 19:56 
Questionsetting form element values using ie TCppWebBrowser control Pin
Andrew J. Burke15-Oct-11 3:32
Andrew J. Burke15-Oct-11 3:32 
AnswerRe: setting form element values using ie TCppWebBrowser control Pin
App_15-Oct-11 8:37
App_15-Oct-11 8:37 
GeneralRe: setting form element values using ie TCppWebBrowser control Pin
Andrew J. Burke15-Oct-11 14:50
Andrew J. Burke15-Oct-11 14:50 
GeneralRe: setting form element values using ie TCppWebBrowser control Pin
App_15-Oct-11 20:58
App_15-Oct-11 20:58 
GeneralRe: setting form element values using ie TCppWebBrowser control Pin
Andrew J. Burke16-Oct-11 6:38
Andrew J. Burke16-Oct-11 6:38 
GeneralRe: setting form element values using ie TCppWebBrowser control Pin
App_16-Oct-11 7:44
App_16-Oct-11 7:44 
What you are likely seeing is a call to MessageBox() before the
exception is thrown. To turn that off, you can go into the Project
Options and add NO_PROMPT_ON_HRCHECK_FAILURE to the Conditionals list.
The exception will then be thrown without any prompting.

If you are still using the TComInterface wrapper, the '->' operator
validates whether the interface pointer is available or not. If it is
not, an ASSERT is thrown. To disable the prompt on that error, you
can define NO_PROMPT_ON_ASSERTE_FAILURE in the Project Options.


If you implement a try..catch block, it will catch errors normally without messagebox prompt interruptions.

(sample try catch)
C#
try {
      buf = new char[512];
      if( buf == 0 )  throw "Memory allocation failure!";
    } 
catch( char * str ) {
      cout << "Exception raised: " << str << '\n';
    }

GeneralRe: setting form element values using ie TCppWebBrowser control Pin
Andrew J. Burke18-Oct-11 5:16
Andrew J. Burke18-Oct-11 5:16 
QuestionClarification regarding Boolean variable Pin
pix_programmer15-Oct-11 1:01
pix_programmer15-Oct-11 1:01 
AnswerRe: Clarification regarding Boolean variable Pin
André Kraak15-Oct-11 1:18
André Kraak15-Oct-11 1:18 
GeneralRe: i would like to elaborate further Pin
Software_Developer15-Oct-11 1:47
Software_Developer15-Oct-11 1:47 

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.