Link to home
Start Free TrialLog in
Avatar of MSafine
MSafine

asked on

Visual C++ interface question

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();
Avatar of jkr
jkr
Flag of Germany image

There is a block selection available, just press CTRL+ALT . But why not just search&replacem with "replace" set to an empty string?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MSafine
MSafine

ASKER

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.
>> Let me know if you find out

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

ASKER

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...