Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About Design Pattern in MFC : Urgent Reply Pin
parims28-Dec-05 18:55
parims28-Dec-05 18:55 
AnswerRe: About Design Pattern in MFC : Urgent Reply Pin
Johann Gerell28-Dec-05 19:19
Johann Gerell28-Dec-05 19:19 
AnswerRe: About Design Pattern in MFC : Urgent Reply Pin
vikas amin29-Dec-05 0:35
vikas amin29-Dec-05 0:35 
Questionc++ question Pin
yourbuddy7728-Dec-05 17:40
yourbuddy7728-Dec-05 17:40 
AnswerRe: c++ question Pin
Prakash Nadar28-Dec-05 17:50
Prakash Nadar28-Dec-05 17:50 
GeneralRe: c++ question Pin
yourbuddy7728-Dec-05 17:54
yourbuddy7728-Dec-05 17:54 
GeneralRe: c++ question Pin
Prakash Nadar28-Dec-05 17:56
Prakash Nadar28-Dec-05 17:56 
AnswerRe: c++ question Pin
Johann Gerell28-Dec-05 19:20
Johann Gerell28-Dec-05 19:20 
Well, since you use the term "throw", then I assume f3 will throw an exception on error, not return an error code. If so, then neither f2 or f1 will be executed. If you mean that f3 returns an error code, then you must check the values before passing them to f1.

This is really elementary C++, so I wonder: 1) Do they really ask such questions at interviews? 2) have you not done your homework?

--
The Blog: Bits and Pieces
GeneralRe: c++ question Pin
vikas amin28-Dec-05 20:34
vikas amin28-Dec-05 20:34 
Questionidentifier 'THIS' Pin
skumaran_1928-Dec-05 17:38
skumaran_1928-Dec-05 17:38 
AnswerRe: identifier 'THIS' Pin
koothkeeper29-Dec-05 10:14
professionalkoothkeeper29-Dec-05 10:14 
GeneralRe: identifier 'THIS' Pin
segment_fault3-Jan-06 17:47
segment_fault3-Jan-06 17:47 
QuestionHow to change the Background color of AfxMessageBox? Pin
LaHaHa28-Dec-05 17:35
LaHaHa28-Dec-05 17:35 
AnswerRe: How to change the Background color of AfxMessageBox? Pin
Owner drawn28-Dec-05 17:51
Owner drawn28-Dec-05 17:51 
GeneralRe: How to change the Background color of AfxMessageBox? Pin
LaHaHa28-Dec-05 18:39
LaHaHa28-Dec-05 18:39 
GeneralRe: How to change the Background color of AfxMessageBox? Pin
Owner drawn28-Dec-05 18:44
Owner drawn28-Dec-05 18:44 
GeneralRe: How to change the Background color of AfxMessageBox? Pin
LaHaHa28-Dec-05 20:32
LaHaHa28-Dec-05 20:32 
QuestionHow to Write a function which will execute before the main function in C! No Pragma's! Pin
Owner drawn28-Dec-05 17:17
Owner drawn28-Dec-05 17:17 
AnswerRe: How to Write a function which will execute before the main function in C! No Pragma's! Pin
Prakash Nadar28-Dec-05 17:23
Prakash Nadar28-Dec-05 17:23 
GeneralRe: How to Write a function which will execute before the main function in C! No Pragma's! Pin
Owner drawn28-Dec-05 17:42
Owner drawn28-Dec-05 17:42 
GeneralRe: How to Write a function which will execute before the main function in C! No Pragma's! Pin
Prakash Nadar28-Dec-05 17:42
Prakash Nadar28-Dec-05 17:42 
GeneralRe: How to Write a function which will execute before the main function in C! No Pragma's! Pin
yourbuddy7728-Dec-05 17:45
yourbuddy7728-Dec-05 17:45 
GeneralRe: How to Write a function which will execute before the main function in C! No Pragma's! Pin
Prakash Nadar28-Dec-05 17:52
Prakash Nadar28-Dec-05 17:52 
QuestionBut how to call it before main is called... Pin
Owner drawn28-Dec-05 17:53
Owner drawn28-Dec-05 17:53 
AnswerRe: How to Write a function which will execute before the main function in C! No Pragma's! Pin
vikas amin28-Dec-05 18:25
vikas amin28-Dec-05 18:25 

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.