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 7 in studio 2005, #region possible?

MFC 7 in studio 2005, #region possible?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questioncsharpvisual-studio
5 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.
  • G Offline
    G Offline
    Greg Ellis
    wrote on last edited by
    #1

    HI All, Is it possible to use #region in MFC 7 (unmanaged c++) in visual studio 2005? If so how do I do that? Cheers, Greg

    M A 2 Replies Last reply
    0
    • G Greg Ellis

      HI All, Is it possible to use #region in MFC 7 (unmanaged c++) in visual studio 2005? If so how do I do that? Cheers, Greg

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      I'm on MFC 7 with VS2003 and I see no #region directive associated with C++. Is it related to making the code collapsible in the editor? If so that can be done by marking a block of code and using the Outline stuff in the edit menu or with a right click. Mark

      "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

      G 1 Reply Last reply
      0
      • M Mark Salsbery

        I'm on MFC 7 with VS2003 and I see no #region directive associated with C++. Is it related to making the code collapsible in the editor? If so that can be done by marking a block of code and using the Outline stuff in the edit menu or with a right click. Mark

        "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

        G Offline
        G Offline
        Greg Ellis
        wrote on last edited by
        #3

        Thank you so much, that was it!!! Cheers, Greg

        1 Reply Last reply
        0
        • G Greg Ellis

          HI All, Is it possible to use #region in MFC 7 (unmanaged c++) in visual studio 2005? If so how do I do that? Cheers, Greg

          A Offline
          A Offline
          Andre xxxxxxx
          wrote on last edited by
          #4

          The equivalent of a #region in C# is #pragma region and #pragma endregion.

          M 1 Reply Last reply
          0
          • A Andre xxxxxxx

            The equivalent of a #region in C# is #pragma region and #pragma endregion.

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            :doh: I didn't even think of the #pragmas! Learn somethin new every day :) Thanks, Mark

            "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

            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