Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual C++ interface question

Posted on 2002-03-16
5
Medium Priority
?
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

704 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