Click here to Skip to main content
15,908,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is #if 0 Pin
Stephen Hewitt15-Jan-06 19:55
Stephen Hewitt15-Jan-06 19:55 
GeneralRe: What is #if 0 Pin
toxcct15-Jan-06 21:51
toxcct15-Jan-06 21:51 
GeneralRe: What is #if 0 Pin
Prakash Nadar15-Jan-06 21:52
Prakash Nadar15-Jan-06 21:52 
GeneralRe: What is #if 0 Pin
kvprasad15-Jan-06 22:07
professionalkvprasad15-Jan-06 22:07 
GeneralRe: What is #if 0 Pin
David Crow16-Jan-06 3:06
David Crow16-Jan-06 3:06 
GeneralRe: What is #if 0 Pin
Stephen Hewitt16-Jan-06 11:27
Stephen Hewitt16-Jan-06 11:27 
GeneralRe: What is #if 0 Pin
Phil J Pearson17-Jan-06 3:09
Phil J Pearson17-Jan-06 3:09 
GeneralRe: What is #if 0 Pin
Shraddhan22-Jan-06 22:42
Shraddhan22-Jan-06 22:42 
I believe that in Visual C++ 6.0 there is a key combination that will take you to / from
#if
and
#endif

but Microsoft in their 'wisdom' removed this very handy functionality from VC++.NET 2001. Yes, thanks Microsoft...

Personally, when I need to comment out large chunks of code, I use

#if defined dfkagtljarogh
#end if // defined dfkagtljarogh

where dfkagtljarogh is the result of some random keystrokes. Copy and paste to make sure that two instances match, and then it is not too bad to use Find to jump from beginning to end or vice versa.

And as for being unable to nest /* ... */ comments in C++, this is an abomination that should never have been put into the language. Is there any reason whatsoever why C++ (or C even) HAVE TO REFUSE to allow such useful nested comments?

Thanks again, Microsoft. Some C++ compilers do allow this.

Shraddhan
GeneralRe: What is #if 0 Pin
Prakash Nadar22-Jan-06 23:29
Prakash Nadar22-Jan-06 23:29 
Answer[Message Deleted] Pin
Divyang Mithaiwala15-Jan-06 22:04
Divyang Mithaiwala15-Jan-06 22:04 
GeneralRe: What is #if 0 Pin
Maximilien16-Jan-06 1:11
Maximilien16-Jan-06 1:11 
QuestionWEBSERVER for ASP Pin
shadrach_india15-Jan-06 18:41
shadrach_india15-Jan-06 18:41 
AnswerRe: WEBSERVER for ASP Pin
Prakash Nadar15-Jan-06 19:27
Prakash Nadar15-Jan-06 19:27 
GeneralRe: WEBSERVER for ASP Pin
shadrach_india15-Jan-06 19:47
shadrach_india15-Jan-06 19:47 
GeneralRe: WEBSERVER for ASP Pin
Prakash Nadar15-Jan-06 21:51
Prakash Nadar15-Jan-06 21:51 
Questionhelp needed for VS2005 add-in using native c++ Pin
Saurabh.Garg15-Jan-06 18:26
Saurabh.Garg15-Jan-06 18:26 
AnswerRe: help needed for VS2005 add-in using native c++ Pin
MF15-Jan-06 19:48
MF15-Jan-06 19:48 
GeneralRe: help needed for VS2005 add-in using native c++ Pin
Saurabh.Garg15-Jan-06 19:53
Saurabh.Garg15-Jan-06 19:53 
QuestionHow to visible the background buttons when I change the back ground color Pin
S_a_n15-Jan-06 18:20
S_a_n15-Jan-06 18:20 
AnswerRe: How to visible the background buttons when I change the back ground color Pin
Owner drawn15-Jan-06 18:27
Owner drawn15-Jan-06 18:27 
GeneralRe: How to visible the background buttons when I change the back ground color Pin
S_a_n15-Jan-06 18:44
S_a_n15-Jan-06 18:44 
GeneralDon't use FillRect() there Pin
Owner drawn15-Jan-06 18:47
Owner drawn15-Jan-06 18:47 
GeneralRe: Don't use FillRect() Pin
S_a_n15-Jan-06 18:51
S_a_n15-Jan-06 18:51 
GeneralRe: Don't use FillRect() Pin
Owner drawn15-Jan-06 18:55
Owner drawn15-Jan-06 18:55 
GeneralRe: Don't use FillRect() Pin
S_a_n15-Jan-06 19:42
S_a_n15-Jan-06 19:42 

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.