MFC中D的符号//{{的由来

来源:互联网 发布:万网域名账号间转移 编辑:程序博客网 时间:2024/06/11 16:33

Q: MFC中,老会看到这个符号//{{,这个是什么意思,怎么称呼它?在哪本教程的哪里可以了解到这些资料? 如: //{{AFX_VIRTUAL(CTestApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL

 

A1:

AFX_VIRTUAL
AFX_VIRTUAL
Remarks

ClassWizard and AppWizard insert specially formatted comment delimiters in your source code files to mark the places in your files that ClassWizard can write to. AFX_VIRTUAL is used to mark the beginning and end of virtual function override declarations in a class’s header (.H) file:

//{{AFX_VIRTUAL(classname)
...
//}}AFX_VIRTUAL
There is no corresponding ClassWizard section in the .CPP file.

 

A2:

向导脚本通过它来寻找特定的代码块,添加新内容时方便操作。

原创粉丝点击