MFC class wizard comment delimiters [Solved]
-
I'm maintaining C++ code ported form VC6 into VS2010. The class wizard of VC6 uses comment delimiters started with
//{{AFX_ etc.
//}}AFX_ etc.
The class wizard of VS2010 seems not using them anymore. New items are not longer added before the
//}}AFX_ etc.
but writing for example an ON_MESSAGE after a group of ON_MESSAGE. It looks that the MFC comment delimiters are outdated and useless. Is it safe to remove them from the code?
-
I'm maintaining C++ code ported form VC6 into VS2010. The class wizard of VC6 uses comment delimiters started with
//{{AFX_ etc.
//}}AFX_ etc.
The class wizard of VS2010 seems not using them anymore. New items are not longer added before the
//}}AFX_ etc.
but writing for example an ON_MESSAGE after a group of ON_MESSAGE. It looks that the MFC comment delimiters are outdated and useless. Is it safe to remove them from the code?
It is safe to remove them if you don't want to use VC6 anymore. VS 2002 and later did not use these markers.
-
I'm maintaining C++ code ported form VC6 into VS2010. The class wizard of VC6 uses comment delimiters started with
//{{AFX_ etc.
//}}AFX_ etc.
The class wizard of VS2010 seems not using them anymore. New items are not longer added before the
//}}AFX_ etc.
but writing for example an ON_MESSAGE after a group of ON_MESSAGE. It looks that the MFC comment delimiters are outdated and useless. Is it safe to remove them from the code?
the comment delimiters only used by IDE(vc6.0) , so when you add code manually, you can add code in anywhere. and you can remove the comment delimiters, but the IDE class warized will can't use!