Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PREPROCESSORS Pin
Tim Smith19-May-02 3:06
Tim Smith19-May-02 3:06 
GeneralRe: PREPROCESSORS Pin
Paul M Watt17-May-02 22:58
mentorPaul M Watt17-May-02 22:58 
GeneralRe: PREPROCESSORS Pin
Christian Graus17-May-02 23:06
protectorChristian Graus17-May-02 23:06 
GeneralRe: PREPROCESSORS Pin
Paul M Watt17-May-02 23:11
mentorPaul M Watt17-May-02 23:11 
GeneralRe: PREPROCESSORS Pin
Rama Krishna Vavilala18-May-02 1:56
Rama Krishna Vavilala18-May-02 1:56 
GeneralRe: PREPROCESSORS Pin
Mike Nordell17-May-02 23:53
Mike Nordell17-May-02 23:53 
GeneralRe: PREPROCESSORS Pin
Christian Graus18-May-02 2:50
protectorChristian Graus18-May-02 2:50 
GeneralRe: PREPROCESSORS Pin
Mike Nordell19-May-02 2:19
Mike Nordell19-May-02 2:19 
Christian Graus wrote:
Wrong. The std library provides assert, there is no need to impliment it yourself.

However true that statement is, I'm not wrong. The only way one can implement assert is by using the preprocessor (macro facility).

stringize a (type-) name

True. When would you want to do this, except in a debug tool, which I've already said I have done myself using macros ?


I've used it in a few places where I need the stringized typename to create factories.

Now list the language features that Stroustrup says are usually a sign of bad design or bad programming.

Ehhh, macros? Smile | :)

I find a lot of people over-use them and usually they should take the advice of the person who wrote the language, and use const variables and inline functions instead.

The last years I've experienced a decline in the use of macros, and more and more I've seen templates, integral constants and inline functions used.

Unfortunately the (probably) most widely used header files on the planet makes our lives problematic if we try to name something e.g. SendMessage.
GeneralRe: PREPROCESSORS Pin
Rama Krishna Vavilala18-May-02 1:54
Rama Krishna Vavilala18-May-02 1:54 
GeneralRe: PREPROCESSORS Pin
Alexandru Savescu17-May-02 22:18
Alexandru Savescu17-May-02 22:18 
GeneralGet Icons from ToolBars Pin
MaTrIX2k217-May-02 20:14
MaTrIX2k217-May-02 20:14 
GeneralRe: Get Icons from ToolBars Pin
Nish Nishant17-May-02 21:42
sitebuilderNish Nishant17-May-02 21:42 
GeneralRe: Get Icons from ToolBars Pin
MaTrIX2k218-May-02 9:32
MaTrIX2k218-May-02 9:32 
GeneralHelp with complex number types. Pin
oRion17-May-02 19:03
oRion17-May-02 19:03 
GeneralRe: Help with complex number types. Pin
Carlos Antollini17-May-02 19:21
Carlos Antollini17-May-02 19:21 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 1:45
oRion18-May-02 1:45 
GeneralRe: Help with complex number types. Pin
Mike Nordell17-May-02 23:58
Mike Nordell17-May-02 23:58 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 1:32
oRion18-May-02 1:32 
GeneralRe: Help with complex number types. Pin
Mike Nordell18-May-02 2:07
Mike Nordell18-May-02 2:07 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 2:37
oRion18-May-02 2:37 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 2:43
oRion18-May-02 2:43 
Questiona error has been throwed out when I add records into database? Pin
white jungle17-May-02 18:21
white jungle17-May-02 18:21 
AnswerRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 18:31
Maxwell Chen17-May-02 18:31 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle17-May-02 18:44
white jungle17-May-02 18:44 
GeneralRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 19:02
Maxwell Chen17-May-02 19:02 

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.