Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Visual C++ interface question

Posted on 2002-03-16
5
Medium Priority
?
168 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 400 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

927 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