Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hiding StandardOutput. Pin
Ashish Chauhan12-Feb-08 3:30
Ashish Chauhan12-Feb-08 3:30 
GeneralRe: Hiding StandardOutput. Pin
David Crow12-Feb-08 3:38
David Crow12-Feb-08 3:38 
GeneralProblem while running exe.. Pin
Ashish Chauhan12-Feb-08 1:45
Ashish Chauhan12-Feb-08 1:45 
GeneralRe: Problem while running exe.. Pin
Cedric Moonen12-Feb-08 1:54
Cedric Moonen12-Feb-08 1:54 
GeneralRe: Problem while running exe.. Pin
Ashish Chauhan12-Feb-08 1:59
Ashish Chauhan12-Feb-08 1:59 
GeneralRe: Problem while running exe.. Pin
Rajkumar R12-Feb-08 4:03
Rajkumar R12-Feb-08 4:03 
QuestionC++ Questions [modified] Pin
Andy Rama12-Feb-08 0:35
Andy Rama12-Feb-08 0:35 
GeneralRe: C++ Questions Pin
jhwurmbach12-Feb-08 1:30
jhwurmbach12-Feb-08 1:30 
Aniket Salunkhe wrote:
1. In which case there is need to overload 'new' & 'delete', gloabally or within a class?


Rarely.
Sometimes you want to have your allocation from a special heap memory.

Aniket Salunkhe wrote:
2. How to check memory leak in an application developed in C/C++?


In debug mode, the runtime does. It uses overloaded operator new for that!
Also, there are some source-code analyzers, who try to do the same.

But in the end it comes back to the programmer knowing what he is doing.

Aniket Salunkhe wrote:
3. What is difference between a MACRO variable & const variable in C/C++? As we can pass or return const variables to/from functions, Can we do same with MACRO variable?


A Macro is something like a search & replace you can do with the text-editor. It is done by the preprocessor before the compiler runs.
The compiler only ever gets to see the de-MACROed source. So, it has no notion whatsoever about MACROS.
So, the answer your specific question is:
No, you can not pass or return a MACRO. But we might devise a MACRO that does not give a compiler error when written instead of a parameter or return type.


Aniket Salunkhe wrote:
4. Is the 'Data Abstraction' is feature of C++?


I have no idea where you got that term from.
after reading wikipedia[^], I think you maybe mean abstract base classes?

Aniket Salunkhe wrote:
Then what do u mean by 'Data Abstraction'? Creating new data types? But we can create new data types in C using struct/union, then why 'Data Abstraction' is not feature of C?


Because C does not explicitly have it as a feature?
Remenber, whil C++ can be expressed as C, C in turn can be expressed as machine language. Yet no one will call machine language abstract.

Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: C++ Questions Pin
Andy Rama12-Feb-08 22:36
Andy Rama12-Feb-08 22:36 
GeneralRe: C++ Questions Pin
Matthew Faithfull12-Feb-08 2:40
Matthew Faithfull12-Feb-08 2:40 
QuestionRe: C++ Questions Pin
Andy Rama12-Feb-08 21:54
Andy Rama12-Feb-08 21:54 
GeneralRe: C++ Questions Pin
Matthew Faithfull12-Feb-08 22:26
Matthew Faithfull12-Feb-08 22:26 
GeneralRe: C++ Questions Pin
Andy Rama12-Feb-08 22:32
Andy Rama12-Feb-08 22:32 
Generalset left and right Pin
gentleguy11-Feb-08 23:26
gentleguy11-Feb-08 23:26 
QuestionRe: set left and right Pin
CPallini11-Feb-08 23:37
mveCPallini11-Feb-08 23:37 
GeneralRe: set left and right Pin
gentleguy12-Feb-08 0:15
gentleguy12-Feb-08 0:15 
QuestionRe: set left and right Pin
CPallini12-Feb-08 0:26
mveCPallini12-Feb-08 0:26 
GeneralRe: set left and right Pin
gentleguy12-Feb-08 1:04
gentleguy12-Feb-08 1:04 
GeneralRe: set left and right Pin
CPallini12-Feb-08 2:09
mveCPallini12-Feb-08 2:09 
GeneralRe: set left and right Pin
gentleguy12-Feb-08 19:45
gentleguy12-Feb-08 19:45 
QuestionRe: set left and right Pin
CPallini12-Feb-08 21:30
mveCPallini12-Feb-08 21:30 
QuestionHow to automate VC++ builds Pin
cagespear11-Feb-08 23:13
cagespear11-Feb-08 23:13 
AnswerRe: How to automate VC++ builds Pin
Haroon Sarwar12-Feb-08 1:10
Haroon Sarwar12-Feb-08 1:10 
GeneralRe: How to automate VC++ builds Pin
cagespear12-Feb-08 17:25
cagespear12-Feb-08 17:25 
AnswerRe: How to automate VC++ builds Pin
jhwurmbach12-Feb-08 1:35
jhwurmbach12-Feb-08 1:35 

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.