Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrint Problem Pin
Md. Mazharul Islam Khan7-Nov-07 18:35
Md. Mazharul Islam Khan7-Nov-07 18:35 
AnswerRe: Print Problem Pin
Nelek7-Nov-07 21:29
protectorNelek7-Nov-07 21:29 
AnswerRe: Print Problem Pin
Mark Salsbery8-Nov-07 5:29
Mark Salsbery8-Nov-07 5:29 
Questionexception handline in MAC Pin
MKUser7-Nov-07 18:33
MKUser7-Nov-07 18:33 
AnswerRe: exception handline in MAC Pin
Matthew Faithfull7-Nov-07 23:15
Matthew Faithfull7-Nov-07 23:15 
GeneralRe: exception handline in MAC Pin
MKUser8-Nov-07 15:25
MKUser8-Nov-07 15:25 
GeneralRe: exception handline in MAC Pin
Matthew Faithfull8-Nov-07 22:36
Matthew Faithfull8-Nov-07 22:36 
GeneralRe: exception handline in MAC Pin
MKUser11-Nov-07 17:17
MKUser11-Nov-07 17:17 
Ok Thanks for this info. I think there is some problem with gcc compiler or some special setting which i dont know. I create a new program just to handle divide by zero exception. In project setting i enabled c/c++ exception. In prepocessor macro following line was written
_APPLE_C_SOURCE _NO_EXCEPTION
it prevents the exception. So i removed this line. Also in my program i add following
#undef _NO_NAMESPACE
#undef _NO_EXCEPTION
#undef _NO_TEMPLATE

But after this exception is not caught. Program is simple like
int main(void)
{
try{
vector<int> a;
a.push_back(1);
a.push_back(2);

vector<int> b;
b.push_back(0);
b.push_back(0);

for(int i = 0; i <a.size();i++)
{
="" if(a[i]="" b[i])
="" a[i]="b[i];
" }
="" catch(...)
="" printf("exception="" caught");
="" }
}

i="" think="" there="" is="" something="" which="" should="" be="" define="" in="" preprocessor.=""

<div="" class="ForumSig">Manoj Kumar Chauhan
GeneralRe: exception handline in MAC Pin
Matthew Faithfull11-Nov-07 22:31
Matthew Faithfull11-Nov-07 22:31 
GeneralRe: exception handline in MAC Pin
MKUser12-Nov-07 21:21
MKUser12-Nov-07 21:21 
GeneralRe: exception handline in MAC Pin
Matthew Faithfull13-Nov-07 5:33
Matthew Faithfull13-Nov-07 5:33 
QuestionProblem with memory Allocation and deallocation Pin
manish.patel7-Nov-07 18:20
manish.patel7-Nov-07 18:20 
AnswerRe: Problem with memory Allocation and deallocation Pin
sudarshan1247-Nov-07 19:53
sudarshan1247-Nov-07 19:53 
GeneralRe: Problem with memory Allocation and deallocation Pin
manish.patel7-Nov-07 20:09
manish.patel7-Nov-07 20:09 
GeneralRe: Problem with memory Allocation and deallocation Pin
toxcct8-Nov-07 2:12
toxcct8-Nov-07 2:12 
AnswerRe: Problem with memory Allocation and deallocation Pin
Cedric Moonen7-Nov-07 20:05
Cedric Moonen7-Nov-07 20:05 
GeneralRe: Problem with memory Allocation and deallocation Pin
manish.patel7-Nov-07 20:15
manish.patel7-Nov-07 20:15 
GeneralRe: Problem with memory Allocation and deallocation Pin
Cedric Moonen7-Nov-07 20:18
Cedric Moonen7-Nov-07 20:18 
GeneralRe: Problem with memory Allocation and deallocation Pin
manish.patel7-Nov-07 21:16
manish.patel7-Nov-07 21:16 
GeneralRe: Problem with memory Allocation and deallocation Pin
Cedric Moonen7-Nov-07 21:23
Cedric Moonen7-Nov-07 21:23 
GeneralRe: Problem with memory Allocation and deallocation Pin
Nelek7-Nov-07 21:27
protectorNelek7-Nov-07 21:27 
QuestionRe: Problem with memory Allocation and deallocation Pin
Roger Broomfield7-Nov-07 21:26
Roger Broomfield7-Nov-07 21:26 
QuestionRe: Problem with memory Allocation and deallocation Pin
David Crow8-Nov-07 3:37
David Crow8-Nov-07 3:37 
AnswerRe: Problem with memory Allocation and deallocation Pin
Bram van Kampen10-Nov-07 16:02
Bram van Kampen10-Nov-07 16:02 
QuestionDLL_THREAD_ATTACH: Pin
ForNow7-Nov-07 16:34
ForNow7-Nov-07 16:34 

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.