Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC class wizard comment delimiters [Solved]

MFC class wizard comment delimiters [Solved]

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Theo Buys
    wrote on last edited by
    #1

    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?

    J A 2 Replies Last reply
    0
    • T Theo Buys

      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?

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      It is safe to remove them if you don't want to use VC6 anymore. VS 2002 and later did not use these markers.

      1 Reply Last reply
      0
      • T Theo Buys

        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?

        A Offline
        A Offline
        a ray of sunshine
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups