473,239 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

visual c++ 6 comment question

Hello, does vc++ 6 provide a fastest way to comment multiple lines using a
shortcut-key function?

For example, in vs2005, I can comment multiple lines using CTRL+K+C
shortcut-key, how can i do this in vc++6?

Please advise.
Oct 13 '06 #1
4 2859
On Fri, 13 Oct 2006 16:04:41 +0800 in comp.lang.c++, "babyip" <babyip_at_hot_mail_dot_comwrote,
>Hello, does vc++ 6 provide a fastest way to comment multiple lines
Multi-line comments are done by preceding them
with /* and following with */

Please read the welcome message posted twice per week in comp.lang.c++ under the subject "Welcome to comp.lang.c++! Read this first." or available at
http://www.slack.net/~shiva/welcome.txt

Oct 13 '06 #2

babyip wrote:
Hello, does vc++ 6 provide a fastest way to comment multiple lines using a
shortcut-key function?

For example, in vs2005, I can comment multiple lines using CTRL+K+C
shortcut-key, how can i do this in vc++6?

Please advise.

What does the question have to do with C++?
/*
comment
*/

Oct 13 '06 #3
David Harmon wrote:
On Fri, 13 Oct 2006 16:04:41 +0800 in comp.lang.c++, "babyip" <babyip_at_hot_mail_dot_comwrote,
>Hello, does vc++ 6 provide a fastest way to comment multiple lines

Multi-line comments are done by preceding them
with /* and following with */

Please read the welcome message posted twice per week in comp.lang.c++ under the subject "Welcome to comp.lang.c++! Read this first." or available at
http://www.slack.net/~shiva/welcome.txt
The only problem is comments don't nest, so if there are comments int he
code you are trying to disable, it won't work.
Consider using
#if 0

#endif

if you want to disable code.
Oct 13 '06 #4
Multi-line comments are done by preceding them
with /* and following with */
This may not work if the enclosed code has */ token. A more effective
way to do it is through preprocessor macro:

#if 0 // commenting out

stuff I don't want...

#endif

Ben
Oct 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler...
3
by: Nosnets | last post by:
I am learning from a text book. Debugging breakpoints does not work. The Breakpoint properties dialogue contains the following comment "The breakpoint will not currently be hit. No symbols have...
6
by: frizzle | last post by:
Hi there I've built this user management system, using PHP & mySQL, to manage users that can comment on a certain site. Users have to be logged in to comment. Below each comment is (how...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
6
by: Adrian | last post by:
In visual studio when I lay-out my html code, Visual studio decides otherwise, and puts all the lines behind each other. This makes it difficult to find things you are looking for in the code. I...
6
by: | last post by:
Hi, I'm steel trying to read and update my XML file with Visual Basic Express but i am unable to find the right way to read my xml file and update it if neccessary... Here is my problem :...
7
by: E.F | last post by:
Hi everybody, I get lost trying to insert a node in my xml file with readfile, xpath, xpathnavigator, etc... 1/ my xml file looks like that : <PUPILL_CP_1> <YEAR_2006> <OCTOBRE...
11
by: t | last post by:
Lippman's C++ Primer, 4th ed., p575 says: Friendship is not inherited. Friends of the base class have no special access to members of its derived class. If a base class is granted friendship,...
13
by: noagbodjivictor | last post by:
Hi, I'm really confused; Visual C++ comes in so many flavors that I don't really know what to choose. First of all, I want to buy a commercial version because the Express editions, however nice...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.