Solved

Visual C++ interface question

Posted on 2002-03-16
5
151 Views
Last Modified: 2013-11-20
Hello,
does anybody know who to remove all the "//DEL" in front of each statemt with a single action, I mean not to go manually through all the "//DEL" and remove it with backspace for each line? Or maybe there is a block selection available?

Also, how to select a whole block and put comments in front of each line with a sigle action?

I know there is a option in VB6. Does VC++ 6.0 has it?
Can't find it. Appreciate your help.

void CDialogMain::InitiateLoading()
{
//DEL      //Matrix_CompareTo
//DEL      CString S;
//DEL      S="G";
//DEL      
//DEL //     Matrix_Lib
//DEL
//DEL      WIN32_FIND_DATA FileData;
//DEL      int Pos_in_Lib=0;
//DEL
//DEL      Matrix_Lib.RemoveAll();
//DEL      Matrix_Lib1.RemoveAll();
//DEL      Matrix_Lib2.RemoveAll();
//DEL      Matrix_Lib3.RemoveAll();
//DEL      Matrix_Lib4.RemoveAll();
//DEL      Matrix_Lib5.RemoveAll();
//DEL      Matrix_Lib6.RemoveAll();
//DEL      Matrix_Lib7.RemoveAll();
//DEL      Matrix_Lib8.RemoveAll();
//DEL      Matrix_Lib9.RemoveAll();
//DEL      Matrix_Lib10.RemoveAll();
//DEL      Matrix_Lib11.RemoveAll();
//DEL      Matrix_Lib12.RemoveAll();
//DEL      Matrix_Lib13.RemoveAll();
//DEL      Matrix_Lib14.RemoveAll();
//DEL      Matrix_Lib15.RemoveAll();
//DEL      Matrix_Lib16.RemoveAll();
0
Comment
Question by:MSafine
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
There is a block selection available, just press CTRL+ALT . But why not just search&replacem with "replace" set to an empty string?
0
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
Comment Utility
>>Also, how to select a whole block and put comments in front of each line with a sigle action?

Use the good old

/*

*/

to comment :o)
0
 

Author Comment

by:MSafine
Comment Utility
Use the good old

/*

*/

to comment :o)

======================
I know this, but are you sure that there is no way, like in VB? Let me know if you find out.
Thank you.
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
>> Let me know if you find out

Let me put it that way - why should there be something like that if you can use /* ... */ ?
0
 

Author Comment

by:MSafine
Comment Utility
Well, maybe I want to put something in front of each line? To be honest I don't know why else I may need this. Better to know more then less...
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 57
post4 challenge 28 81
changeXy challenge 13 56
Unix Command -- Challenging  question 7 78
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now