Solved

Visual C++ interface question

Posted on 2002-03-16
5
155 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
ID: 6873029
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
ID: 6873033
>>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
ID: 6873487
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
ID: 6875636
>> 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
ID: 6878955
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Looking for a specific application/software 2 116
method notes when mouse over in eclipse 5 87
ffmpeg - "rtsp://...... Operation not permitted" 4 86
countEvens challenge 2 112
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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