CnPack Forum


 
Subject: CnWizards 在 C++builder 中的“注释/取消注释” BUG
CCED136
新警察
Rank: 1



UID 42209
Digest Posts 0
Credits 29
Posts 9
点点分 29
Reading Access 10
Registered 2009-4-17
Status Offline
Post at 2014-10-23 15:19  Profile | Blog | P.M. 
CnWizards 在 C++builder 中的“注释/取消注释” BUG

在 C++builder 中的现象如下:

正常代码:
//---------------------------------------------------------------------------
/*
* 属性方法,读取服务状态
*/
bool __fastcall GetActive(void)
{
    if ( FHandle == NULL )
    {
        return false;
    }

    return true;
}

注释后代码(选中后Ctrl+/):
---------------------------------------------------------------------------
///*
// * 属性方法,读取服务状态
// */
//bool __fastcall GetActive(void)
//{
//    if ( FHandle == NULL )
//    {
//        return false;
//    }
//
//    return true;
//}

取消注释(反转注释,仍然是 Ctrl+/):
//---------------------------------------------------------------------------
/////*
* 属性方法,读取服务状态
*/
bool __fastcall GetActive(void)
{
    if ( FHandle == NULL )
    {
        return false;
    }

    return true;
}


可以看到,取消注释后, 注释格式发生错误了, 导致取消注释后,需要手工重新修改注释才能编译了。
希望开发组改进一下。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6750
Posts 3551
点点分 6750
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2014-10-27 10:42  Profile | Blog | P.M. 
http://www.cnpack.org/downbuilds.php?lang=zh-cn

最新每日构建版686里已经针对此问题做出了修复。
Top
CCED136
新警察
Rank: 1



UID 42209
Digest Posts 0
Credits 29
Posts 9
点点分 29
Reading Access 10
Registered 2009-4-17
Status Offline
Post at 2014-10-27 16:28  Profile | Blog | P.M. 
感谢开发组的辛勤劳动
Top
 




All times are GMT++8, the time now is 2024-3-29 00:07

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.007536 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP