Piccinano
New Member
3 Posts |
Posted - Dec 07 2005 : 08:54:09 AM
|
Hi,
I updated to 10.2.1434.0 from Visual Assist X 10.1.1418.0 and now I observe a different behaviour when i put and remove comments by '//' button.
Example, i have this code:
if (m_bConClose == TRUE) {
int ret = MessageBox ("Do you confirm exit?", "FTP CLIENT",MB_YESNO | MB_ICONQUESTION);
// CString testo; // testo.Format(" %d",ret); // MessageBox (testo, "FTP CLIENT - Confirm",MB_YESNO | MB_ICONQUESTION); // return; if (ret== IDNO) // 7 == IDNO 6 == IDYES return; }
If I select all code and then press the '//' button, to insert comments, Visual Assist insert the // and i get this:
// if (m_bConClose == TRUE) // { // // int ret = MessageBox ("Do you confirm exit?", "FTP CLIENT",MB_YESNO | MB_ICONQUESTION); // // // CString testo; // // testo.Format(" %d",ret); // // MessageBox (testo, "FTP CLIENT - Confirm",MB_YESNO | MB_ICONQUESTION); // // return; // // if (ret== IDNO) // 7 == IDNO 6 == IDYES // return; // }
If I press again the '//' button to remove the inserted comments, I get this:
if (m_bConClose == TRUE) {
int ret = MessageBox ("Do you confirm exit?", "FTP CLIENT",MB_YESNO | MB_ICONQUESTION);
CString testo; testo.Format(" %d",ret); MessageBox (testo, "FTP CLIENT - Confirm",MB_YESNO | MB_ICONQUESTION); return; if (ret== IDNO) // 7 == IDNO 6 == IDYES return; }
Visual Assist removed *all* the // also the previus comments.
The old versions have not this behaviour.
Best regards.
Piccinano. |
|